phplegends/thumb-laravel

This package is abandoned and no longer maintained. No replacement package was suggested.

Package for image thumb creation in Laravel

1.0.4 2016-04-20 02:49 UTC

This package is auto-updated.

Last update: 2021-01-09 18:15:13 UTC


README

#PHPLegends/ThumbLaravel

This package provices a easy way for image thumb creation in Laravel.

#Installation

Add package name in composer.json and run composer update.

"require" : {
	"phplegends/thumb-laravel" : "1.*"
}

Add in your config/app.php file

'PHPLegends\ThumbLaravel\ThumbServiceProvider'

And use the Facade class

'alias' => array(
    'Thumb' => 'PHPLegends\ThumbLaravel\Facade'
)

For create thumb of image:

Thumb::image('img/logo.png', $width, $height)

By default, the output directory is setted to public/_thumbs. For changes, app/config/packages/phplegends/thumb-laravel/config.php file.

return array(
	'folder' => 'my_thumb_directory'
)

After this, all thumbs are storage in public/my_thumb_directory.

For make uncached image thumb, use Thumb::image('url', 50, 50, false).