PHP code example of lrnzfrr / cake-slim-image

1. Go to this page and download the library: Download lrnzfrr/cake-slim-image library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lrnzfrr / cake-slim-image example snippets


    public function middleware($middlewareQueue)
    {
        $middlewareQueue
            ... middleware ..
            ->add(new CakeSlimImageMiddleware($this))
            .. other middleware....
    }
      
    if($this->request->getData('slimImage')) {
        $photoData = $this->request->getData('slimImage');
        // process photo data ... 
    }