r0bdiabl0 / laravel5-phumbor by r0bdiabl0
forked from yhbyun/laravel-phumbor

Laravel 5 package adding support for the Phumbor PHP library for Thumbor.
39,899
7
4
Package Data
Maintainer Username: r0bdiabl0
Maintainer Contact: robert@rkcreative.co (Robert Pettique)
Package Create Date: 2016-01-18
Package Last Update: 2024-09-24
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 15:15:15
Package Statistics
Total Downloads: 39,899
Monthly Downloads: 387
Daily Downloads: 13
Total Stars: 7
Total Watchers: 4
Total Forks: 5
Total Open Issues: 0

Phumbor for Laravel 5

This Laravel package adds support for the 99designs PHP interface to the globocom Thumbor thumbnail service.

Installation

Simply require the package in your composer.json file:

"r0diabl0/laravel5-phumbor": "dev-master"

Run composer install to download the package and have the autoloader updated.

Once installed, register the service provider with your Laravel application. Update the providers section of config/app.php:

'providers' = array(
	// existing providers
	R0bdiabl0\Laravel5Phumbor\Laravel5PhumborServiceProvider::class,
);

and register the facade in the aliases section:

'aliases' => array(
	// existing aliases
	'Phumbor'   => R0bdiabl0\Laravel5Phumbor\Facades\Phumbor::class,
);

Now, publish the package's config file:

php artisan vendor:publish

which will publish the default configuration file to config/laravel5-phumbor.php.

You should modify this file to reflect your Thumbor installation's URL and secret key.

Usage

The Phumbor facade exposes the API from the 99designs PHP interface.

For example:

Phumbor::url('http://images.example.com/llamas.jpg')
    ->fitIn(640, 480)
	->addFilter('fill', 'green');

License

Licensed under the MIT license. See https://github.com/r0bdiabl0/laravel5-phumbor/blob/master/LICENSE