A package for working with the YouTube API v3
To use this package:
-
Import it with composer using the following command:
composer require kennyray/youtube -
Add the YouTubeServiceProvider to your config/app.php providers array:
'KennyRay\YouTube\YouTubeServiceProvider',
-
Run
php artisan vendor:publish -
Add your YouTube API key in
config/youtube.php
To make sure it's working, try this:
YouTube::hello(); // Prints "hello" to the screen to verify it's working
Portions of my code are adapted from others. Thank you for putting your code up publicly to help me learn and grow. alaouy, susomena, and others