PHP code example of quextum / images

1. Go to this page and download the library: Download quextum/images 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/ */

    

quextum / images example snippets

 
function transformArguments(Quextum\Images\Request $request)
{
    if ($request->image instanceof Nette\Database\Table\ActiveRow) {
        $row = $request->image;
        $request->image = "$row->namespace/$row->filename";
    }
    if ($request->image === 'Tvoje máma') {
        $request->image = "TVOJE_MAMA.jpg";
    }
}