hierotex / hierotex-php
A PHP wrapper for HieroTeX
dev-master
2018-12-28 10:06 UTC
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2024-10-27 05:41:42 UTC
README
This is a free software library to render Ancient Egyptian inscriptions from PHP, using Serge Rosmorduc's HieroTeX.
It allows you to programatically create high-quality SVG images of inscriptions from your web app, through a simple API.
use \Hierotex\Hieroglyph\Inscription; header("Content-Type: image/svg+xml"); $inscription = new Inscription("i-mn:n-Htp:t*p"); echo $inscription -> toSvg();
Which creates this output:
The encoding of the inscription is MdC.
Requirements
- PHP 7.1 or newer
- HieroTeX is installed locally
- png2svg is installed