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