File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,18 @@ Please read the wiki on how to use this library with [PHP with composer](https:/
30
30
31
31
For the functions implemented in this library, please visit [ API Reference] ( https://github.com/madcoda/php-youtube-api/wiki/api-reference )
32
32
33
+ ### Example usage with pure PHP (with composer)
34
+ ``` php
35
+ require 'vendor/autoload.php';
36
+ $youtube = new Madcoda\Youtube\Youtube(array('key' => '* Your API key here *'));
37
+ $video = $youtube->getVideoInfo('rie-hPVJ7Sw');
38
+ ```
39
+
40
+ ### Example usage with Laravel 4/5
41
+ ``` php
42
+ $video = Youtube::getVideoInfo(Input::get('vid', 'dQw4w9WgXcQ');
43
+ ```
44
+
33
45
34
46
## Format of returned data
35
47
The returnd json is decoded as PHP objects (not Array).
48
60
49
61
## License
50
62
51
- Madcoda php-youtube-api is licensed under the [ MIT License] ( http://opensource.org/licenses/MIT ) .
63
+ Madcoda php-youtube-api is licensed under the [ MIT License] ( http://opensource.org/licenses/MIT ) .
You can’t perform that action at this time.
0 commit comments