1. Go to this page and download the library: Download atelier/svg 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/ */
use Atelier\Svg\Path\Path;
$path = Path::parse('M20,80 C 80,20 220,20 280,80');
$path->getLength();
$path->getPointAtLength(120); // a Point, for placing a marker along the curve
$path->getBoundingBox();
use Atelier\Svg\Element\Accessibility\Accessibility;
Accessibility::setTitle($document, 'Quarterly revenue');
Accessibility::setDescription($document, 'Bar chart comparing Q1 to Q4');
use Atelier\Svg\Morphing\Morph;
use Atelier\Svg\Path\PathParser;
$parser = new PathParser();
$frames = Morph::frames(
$parser->parse('M 0 0 L 100 0 L 100 100 L 0 100 Z'),
$parser->parse('M 50 0 L 100 50 L 50 100 L 0 50 Z'),
60,
'ease-in-out',
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.