Download the PHP package canducci/thumbnail without Composer
On this page you can find all versions of the php package canducci/thumbnail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package thumbnail
Thumbnail and Video Embed e Share You Tube
Quick start
Required setup
In the require
key of composer.json
file add the following
Run the Composer update command
$ composer update
In your config/app.php
add Canducci\Thumbnail\Providers\ThumbnailServiceProvider::class
to the end of the providers
array:
At the end of config/app.php
add 'Thumbnail' => 'Canducci\Thumbnail\Facades\Thumbnail::class'
to the aliases
array:
--
Simply Instance
Add namespace:
Code Example
Facade
Add namespace:
Code Example
Helper
Injection
Add Namespace
Code Example
Summary of How to Use
Code
To make optimization of the thumbnails in two ways:
Or individually each thumbnail in this way:
Note: only inform the folder name , the names are generated automatically and are also redeemed automatically .
If you prefer you can use the http (without optimization, but functional) to display the thumbnail :
All methods of thumbnails to picture:
These methods are represented by class ThumbnailPicture
:
All methods of class Thumbnail
:
In addition to the part of the thumbnail you have to share part and embed video with these two methods:
How to use:
Helper
Contract - Injection
Facade
Simply Instance
1 - Save one thumbnail
2 - Save all thumbnail
Note: t/
is folder.
Video Share and Embed
The method getInformationVideo()
has a detailed option information of the informed youtube link:
The getInformationVideo ()
to return to class ThumbnailInformation
that has the following methods:
The return of this method is (JSON):