Skip to content

hierotex/hierotex-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HieroTeX for PHP

Build Status Latest Stable Version Total Downloads License

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:

Image of i-mn:n-Htp:t*p

The encoding of the inscription is MdC.

Requirements

  • PHP 7.1 or newer
  • HieroTeX is installed locally
  • png2svg is installed

About

A wrapper library to access HieroTeX from PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages