Discover how to generate and manipulate SVG documents dynamically—directly from PHP.
by Octavia Andreea Anghel
February 8, 2008
calable Vector Graphics (SVG) is an XML specification for producing vector-based graphic content that you can create, modify, and manipulate dynamically from programming languages. Here, you'll explore the most important techniques and libraries for integrating SVG with PHP to create diverse graphic content—from simple shapes to complex graphs. You'll see how to:
Convert an SVG document into a PHP document.
Use the object and embed elements to include an SVG document in an XHTML document.
Generate SVG using PHP's echo command.
Generate SVG using the phpHtmlLib library.
Generate SVG documents using the PEAR::XML_SVG package.
Generate SVG documents using the PEAR::Image_Canvas package.
Integrate PHP , SVG, and AJAX.
Three Simple Techniques
To get started, here are three of the simplest techniques for using SVG in PHP.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!