1. Go to this page and download the library: Download pavlista/palette 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/ */
pavlista / palette example snippets
$generator = new Palette\Generator\Server(
'files/thumbs', // storagePath
'http://www.example.com/files/thumbs/', // storageUrl
'/var/www/example.com/', // basePath
'%signingKey%'
);
$palette = new Palette\Service($generator);
// !!! Zde je nutné implementovat získání již nakonfigurované instance služby Palette.
// Popřípadě ji vytvořit se stejným nastavením znovu. V tom případě ale pozor na zadávané cesty.
$palette->serverResponse();