PEAR::XML_SVG package provides an object-oriented API for building SVG documents. WWW: https://pear.php.net/package/XML_SVG