salmanbe/resize
Composer 安装命令:
composer require salmanbe/resize
包简介
This easy to use library uploads, validates, resize, watermark and save images to disk.
关键字:
README 文档
README
This easy to use library to uploads, validates, resize, watermark and save images to disk.
Depenencies
You must install following packages before installing this package.
Laravel Installation
Install using composer:
composer require salmanbe/resize
There is a service provider included for integration with the Laravel framework. This service should automatically be registered else to register the service provider, add the following to the providers array in config/app.php:
Salmanbe\Resize\ResizeServiceProvider::class,
You can also add it as a Facade in config/app.php:
'Filename' => Salmanbe\Resize\Resize::class,
Global Configuration
Run php artisan vendor:publish --provider="Salmanbe\Resize\ResizeServiceProvider" to publish configuration file.
Basic Usage
Add use Salmanbe\Resize\Resize; or use Resize; at top of the class where you want to use it. Then
$image = new Resize($request->image);
$image->resize(public_path('pictures/blog/large/'), 768, 400);
Full Documentation
Follow the link for installation, configuration, options and code examples.
Uninstall
First remove Salmanbe\Resize\ResizeServiceProvider::class, and
'Filename' => Salmanbe\Resize\Resize::class, from config/app.php if it was added.
Then Run composer remove salmanbe/resize
License
This library is licensed under THE MIT License. Please see License File for more information.
Security contact information
To report a security vulnerability, follow these steps.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-21