fzerorubigd/phpthumb-service-provider

PHPThumb service provider for silex

dev-master 2013-03-13 10:52 UTC

This package is not auto-updated.

Last update: 2024-11-09 15:41:22 UTC


README

A PHPThumb ServiceProvider for Silex base on PHPThumb

Usage

Getting the thumb generator object

$app->register(new fzerorubigd\Silex\PHPThumbServiceProvider());
$provider = $app['phpthumb'];

$thumb = $provider($fileName);
$thumb->rotateImage('CW'); // See PHPThumb documents
$thumb->show();