Phumbor for Laravel 4
This Laravel package adds support for the 99designs PHP interface to the globocom Thumbor thumbnail service., (*1)
Installation
Simply require the package in your composer.json
file:, (*2)
"ceejayoz/laravel-phumbor": "dev-master"
Run composer install
to download the package and have the autoloader updated., (*3)
Once installed, register the service provider with your Laravel application. Update the providers
section of app/config/app.php
:, (*4)
'providers' = array(
// existing providers
'Ceejayoz\LaravelPhumbor\LaravelPhumborServiceProvider',
);
and register the facade in the aliases
section:, (*5)
'aliases' => array(
// existing aliases
'Phumbor' => 'Ceejayoz\LaravelPhumbor\Facades\Phumbor',
);
Now, publish the package's config file:, (*6)
php artisan config:publish ceejayoz/laravel-phumbor
which will publish the default configuration file to app/config/packages/ceejayoz/laravel-phumbor/config.php
., (*7)
You should modify this file to reflect your Thumbor installation's URL and secret key., (*8)
Usage
The Phumbor
facade exposes the API from the 99designs PHP interface., (*9)
For example:, (*10)
Phumbor::url('http://images.example.com/llamas.jpg')
->fitIn(640, 480)
->addFilter('fill', 'green');
License
Licensed under the MIT license. See https://github.com/ceejayoz/laravel-phumbor/blob/master/LICENSE, (*11)