1. Go to this page and download the library: Download lamka02sk/picturium 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/ */
lamka02sk / picturium example snippets
use Picturium\Enum\Format;
use Picturium\Picturium;
use function Picturium\img;
Picturium::configure(
url: 'https://img.example.com',
secret: $_ENV['PICTURIUM_SECRET'],
defaults: img()->dpr([1, 2, 3])->quality(80)->format(Format::Auto),
);