1. Go to this page and download the library: Download coldume/imagecraft 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/ */
coldume / imagecraft example snippets
use Imagecraft\ImageBuilder;
$options = ['engine' => 'php_gd'];
$builder = new ImageBuilder($options);
$context = $builder->about();
if (!$context->isEngineSupported()) {
echo 'Sorry, image processing service is currently not available.'.PHP_EOL;
} else {
$formats = $context->getSupportedImageFormatsToString();
echo 'Make sure that you\'re using one of the following image formats: '.$formats.'.'.PHP_EOL;
$formats = $context->getSupportedFontFormatsToString();
echo 'We accept the following font formats: '.$formats.'.'.PHP_EOL;
}