dev-master
9999999-devEasy thumbnailing in Laravel 4
The Requires
- php >=5.3.0
- illuminate/support ~4
by Matteo Antoci
laravel thumbnail phpthumb yalb
Wallogit.com
2017 © Pedro Peláez
Easy thumbnailing in Laravel 4
This is the phpThumb library wrapped inside a Laravel 4 package., (*1)
Add this package to your composer.json, (*2)
Add this service provider in /app/config/app.php, (*3)
'Matteoantoci\Phpthumb\PhpthumbServiceProvider',
A new route will be created /phpthumb, (*4)
Use the library as described here, (*5)
Add this alias in /app/config/app.php to use phpThumb Helper in your templates., (*6)
'phpThumb' => 'Matteoantoci\Phpthumb\PhpthumbHelper'
The helper class consist on a single static function with this parameters:, (*7)
get($img, $w = "", $h = "", $crop = true, $params = array())
Easy thumbnailing in Laravel 4
laravel thumbnail phpthumb yalb