lrnzfrr/cake-slim-image
Composer 安装命令:
composer require lrnzfrr/cake-slim-image
包简介
CakeSlimImage plugin for CakePHP
README 文档
README
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require lrnzfrr/CakeSlimImage
Use the Plugin
Open Application.php and include the library:
use lrnzfrr\CakeSlimImage\Middleware\CakeSlimImageMiddleware;
and in the middleware Queue:
```php
public function middleware($middlewareQueue)
{
$middlewareQueue
... middleware ..
->add(new CakeSlimImageMiddleware($this))
.. other middleware....
}
The plugins will catch all json post request with "slim" param, single or multi images, so in your controller just write:
if($this->request->getData('slimImage')) { $photoData = $this->request->getData('slimImage'); // process photo data ... }
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-29