lrnzfrr / cake-slim-image
CakeSlimImage plugin for CakePHP
Package info
github.com/lrnzfrr/cake-slim-image
Type:cakephp-plugin
pkg:composer/lrnzfrr/cake-slim-image
v1.6
2019-06-03 08:28 UTC
Requires
- cakephp/cakephp: ^3.5
Requires (Dev)
- phpunit/phpunit: ^5.7.14|^6.0
This package is auto-updated.
Last update: 2026-03-01 00:28:06 UTC
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 ... }