brokenice/laravel-phumbor

Laravel package adding support for the Phumbor PHP library for Thumbor.

dev-master 2019-10-25 10:53 UTC

This package is auto-updated.

Last update: 2024-03-25 20:42:36 UTC


README

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:

composer require brokenice/laravel-phumbor

Now, publish the package's config file:

php artisan vendor:publish --tag=phumbor

which will publish the default configuration file to app/config/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/lucabecchetti/laravel-phumbor/blob/master/LICENSE