Wallogit.com
2017 © Pedro Peláez
Easily create youtube thumbnails with play buttons watermarked on the top for laravel and private projects. A youtube thumbnail generator package for Laravel, (*1)
A class based on "YouTube Thumbnail Enchancer by Hal Gatewood". You can check it out here., (*2)
Simply, add this class into your View/Helper directory and access it from view just like this:, (*3)
Add the following to you composer.json file (Recommend swapping "dev-master" for the latest release), (*4)
"rowland/youtubethumbnalhelper": "dev-master"
composer update, (*5)
'Rowland\YoutubeThumbnailHelper\YoutubeThumbnailHelperServiceProvider',
php artisan migrate --package=rowland/youtubethumbnalhelper
Publish the config, (*6)
php artisan config:publish rowland/youtubethumbnalhelper
Optionally tweak the settings in the many config files for your app. Optionally copy the youtubethumbnalhelper config file (src/config/youtubethumbnalhelper.php) to your administrator model config directory., (*7)
Create the relevant image upload directories that you specify in your config, e.g., (*8)
public/assets/packages/rowland/youtubethumbnalhelper/youtube/play
Simple now you can access it from view/model or controller just like this:, (*9)
YoutubeThumbnailHelper::register("http://www.youtube.com/watch?v=YdIerlxIcHO")->create_image()