You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`curlHeaders`| array |`['Accept-Language: en-US,en;q=0.5']`| Custom headers can be passed to `cURL` when fetching the IMDB page |
40
+
|`cache`| bool |`true`| Caches film data to speed-up future requests for the same film |
41
+
|`techSpecs`| bool |`true`| Loads a films technical specifications (this will take longer as it makes a separate request) |
42
+
|`category`| string |`all`| What category to search for (films `tt`, people `nm` or companies `co`) |
48
43
49
44
```php
50
45
$imdb = new Imdb;
@@ -63,8 +58,8 @@ $imdb->search("Interstellar", [
63
58
]);
64
59
```
65
60
66
-
67
61
### Best Match
62
+
68
63
If you do not know the imdb-id of a film, a search string can be entered. This will search imdb and use the first result as the film to fetch data for.
69
64
70
65
> Note that this will take longer than just entering the ID as it needs to first search imdb before it can get the film data.
@@ -75,31 +70,33 @@ If you do not know the imdb-id of a film, a search string can be entered. This w
75
70
$imdb->film("Apocalypse");
76
71
```
77
72
78
-
79
-
80
-
81
73
## Features
82
74
83
75
### Film Data
76
+
84
77
```
85
78
- Title
79
+
- Genres
86
80
- Year
87
-
- Rating
88
-
- Poster
89
81
- Length
90
82
- Plot
83
+
- Rating
84
+
- Rating Votes (# of votes)
85
+
- Poster
91
86
- Trailer
92
87
- id
93
88
- link
94
89
- Cast
95
90
- actor name
96
91
- actor id
97
-
- image
92
+
- character
93
+
- avatar
94
+
- avatar_hq (high quality avatar)
98
95
- Technical Specs
99
96
```
100
97
101
-
102
98
### Search
99
+
103
100
Search IMDB to return an array of films, people and companies
104
101
105
102
```
@@ -117,11 +114,9 @@ Search IMDB to return an array of films, people and companies
117
114
- image
118
115
```
119
116
120
-
121
-
122
-
123
117
## Dependencies
118
+
124
119
> All dependencies are managed automatically by `composer`.
0 commit comments