allankiezel / ready-set-raphael
Ready Set Raphael SVG Parser
dev-master
2015-01-03 20:15 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2024-11-23 17:47:15 UTC
README
Raphaël JavaScript Library Converter
Ready. Set. Raphael. will convert contents from an SVG file to Raphaël JavaScript code.
Online Conversion Tool
Please visit www.readysetraphael.com to use our automatic converter for your projects.
Usage
<?php
try {
$xml = file_get_contents([path_to_svg);
$svg = SVG::getInstance([optional_js_var_name);
$svg->setSVG($xml);
$parser = new Parser($svg->getSVG());
$parser->init();
} catch (Exception $e) {
echo $e->getMessage();
}
?>
License
Ready. Set. Raphael. is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at www.readysetraphael.com.