rowland / youtubethumbnailhelper
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2024-11-19 03:20:33 UTC
README
Easily create youtube thumbnails with play buttons watermarked on the top for laravel and private projects. A youtube thumbnail generator package for Laravel
A class based on "YouTube Thumbnail Enchancer by Hal Gatewood". You can check it out here.
Simply, add this class into your View/Helper directory and access it from view just like this:
Installation
Add the following to you composer.json file (Recommend swapping "dev-master" for the latest release)
"rowland/youtubethumbnalhelper": "dev-master"
######Run
composer update
######Add the following to app/config/app.php
'Rowland\YoutubeThumbnailHelper\YoutubeThumbnailHelperServiceProvider',
######Run the package migration
php artisan migrate --package=rowland/youtubethumbnalhelper
Publish the config
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.
Create the relevant image upload directories that you specify in your config, e.g.
public/assets/packages/rowland/youtubethumbnalhelper/youtube/play
Simple now you can access it from view/model or controller just like this:
YoutubeThumbnailHelper::register("http://www.youtube.com/watch?v=YdIerlxIcHO")->create_image()