{"repo":"alaouy/YouTube","free":true,"listed":false,"github":"https://github.com/alaouy/YouTube","clone":"git clone https://github.com/alaouy/YouTube.git","description":"🔥 Laravel PHP Facade/Wrapper for the Youtube Data API","language":"PHP","stars":808,"topics":["youtube","api","laravel","package"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"YouTube ========= Laravel PHP Facade/Wrapper for the YouTube Data API v3 ( Non-OAuth ) Requirements - PHP 7.0 or higher - Laravel 5.1 or higher - API key from Google Console Looking for YouTube Package for either of these: PHP 5, Laravel 5.0, Laravel 4? Visit the php5-branch Installation Run in console below command to download package to your project: Configuration In /config/app.php add YoutubeServiceProvider (Laravel < 5.5): Do not forget to add also YouTube facade there (Laravel < 5.5): Publish config settings: Set your YouTube API key in the file: Or in the .env file Or you can set the key programmatically at run time : Usage Validation Rules You can use the bail rule in conjunction with this in order to prevent unnecessary queries. Basic Search Pagination The pagination above is quite basic. Depending on what you are trying to achieve you may want to create a recursive function that traverses the results. Manual Class Instantiation Run Unit Test If you have PHPUnit installed in your environment, run: If you don't have PHPUnit installed, you can run the following: Format of returned data The returned JSON is decoded as PHP objects (not Array). Please read the \"Reference\" section of the Official API doc. YouTube Data API v3 - YouTube Data API v3 Doc - Obtain API key from Google API Console Donation If you find this project to be of use to you please consider buying me a cup of tea :) Credits Built on code from Madcoda's php-youtube-api.","default_branch":null,"files":null,"tree":[],"storefront":"/r/alaouy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alaouy/YouTube/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}