allankiezel / ready-set-raphael
Ready Set Raphael SVG 解析器
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-09-28 17:12:30 UTC
README
Raphaël JavaScript 库转换器
Ready. Set. Raphael. 可以将 SVG 文件的内容转换为 Raphaël JavaScript 代码。
在线转换工具
请访问 www.readysetraphael.com 以使用我们为您的项目提供的自动转换器。
使用方法
<?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();
}
?>
许可证
Ready. Set. Raphael. 使用 Creative Commons Attribution 3.0 Unported License 许可。
基于 www.readysetraphael.com 的工作。