cybercog / php-svg-font
PHP SVG font parser
Fund package maintenance!
1.0.1
2026-03-01 11:04 UTC
Requires
- php: ^8.1
- cybercog/php-unicode: ^1.0
Requires (Dev)
- ext-simplexml: *
- phpunit/phpunit: ^10.5
Suggests
- ext-simplexml: *
This package is auto-updated.
Last update: 2026-03-02 06:10:37 UTC
README
Introduction
PHP SVG Font files reader and manipulator. It uses PHP Unicode package under the hood.
Installation
Pull in the package through Composer.
composer require cybercog/php-svg-font
Usage
Instantiate FontList object
$fontList = \Cog\SvgFont\FontList::ofFile(__DIR__ . '/DejaVuSans.svg');
Retrieve SvgFont object from the FontList
$font = \Cog\SvgFont\FontList::ofFile(__DIR__ . '/DejaVuSans.svg')->getById('DejaVuSans');
License
PHP SVG Fontpackage is open-sourced software licensed under the MIT license by Anton Komarev.
About CyberCog
CyberCog is a Social Unity of enthusiasts. Research the best solutions in product & software development is our passion.
