Download the PHP package kaareln/php-svg-path-data without Composer
On this page you can find all versions of the php package kaareln/php-svg-path-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kaareln/php-svg-path-data
More information about kaareln/php-svg-path-data
Files in kaareln/php-svg-path-data
Package php-svg-path-data
Short Description Add SVG Path Data with object oriented structure
License MIT
Homepage https://github.com/kaareln/php-svg-path-data
Informations about the package php-svg-path-data
php-svg-path-data
PHP-SVG-PATH-DATA is a PHP library which can help during work with PHP-SVG library. It allows to add SVG path data with object oriented structure.
Installation
PHP-SVG-PATH-DATA requires PHP version 8.1 or newer. This package is available on Packagist and can be installed with Composer:
Usage
SVGPath instructions are represented as a string, which can make it difficult to manipulate. However, by using an object representation, the path can be constructed and parsed more easily. This approach also provides the benefits of object-oriented programming, such as the ability to keep references to different parts of the path and manipulate them as needed. This can lead to more efficient and organized code when working with SVGPaths:
Using a parser, individual objects representing different parts of a path can be created and modified for more precise changes and greater flexibility:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.