brokenice / laravel-phumbor
Laravel package adding support for the Phumbor PHP library for Thumbor.
dev-master
2019-10-25 10:53 UTC
Requires
- php: >=7.1
- 99designs/phumbor: ^1.2
- illuminate/support: 5.*|6.*
This package is auto-updated.
Last update: 2024-08-25 21:43:49 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