r0bdiablo/laravel5-phumbor
最新稳定版本:1.0.6
Composer 安装命令:
composer require r0bdiablo/laravel5-phumbor
包简介
Laravel 5+ package adding support for the Phumbor PHP library for Thumbor.
README 文档
README
This Laravel package adds support for the 99designs PHP interface to the globocom Thumbor thumbnail service.
It is compatible with Laravel 5+.
Requires PHP 7.1+.
Installation
Simply run this command in your project root:
composer require r0bdiablo/laravel5-phumbor
or require the package in your composer.json file:
"r0bdiabl0/laravel5-phumbor": "^1.0"
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
统计信息
- 总下载量: 48.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-18