1. Go to this page and download the library: Download atelier/pattern 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/ */
atelier / pattern example snippets
use Atelier\Pattern\Pattern;
$dots = Pattern::dots(spacing: 14, radius: 2.2, stagger: 0.5)->withColor('#f4715c');
declare(strict_types=1);
use Atelier\Pattern\Pattern;
use Atelier\Pattern\PatternRegistry;
use Atelier\Svg\Document;
use Atelier\Svg\Dumper\CompactXmlDumper;
use Atelier\Svg\Element\Shape\RectElement;
$surface->setWidth('360')->setHeight('200');
$surface->setAttribute('fill', $dots->fill());
$document->getRootElement()?->appendChild($surface);
echo (new CompactXmlDumper())->dump($document);