PHP code example of laasti / gregwar-image-provider
1. Go to this page and download the library: Download laasti/gregwar-image-provider 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/ */
laasti / gregwar-image-provider example snippets
$container = new League\Container\Container;
$container->addServiceProvider('Laasti\GregwarImageProvider\Laasti\GregwarImageProvider');
$container->add('config.gregwarImage', ['cache_dir' => 'your-cache-directory']);
$image = $container->get('Gregwar\Image\Image');