masnathan/parser
最新稳定版本:v0.0.1
Composer 安装命令:
composer require masnathan/parser
包简介
Global data type parser
README 文档
README
Global data type parser
Install
Via Composer
$ composer require masnathan/parser
Usage
use MASNathan\Parser\Parser; $data = array( 'foo' => 'bar', 'sup' => 'World' ); $content = Parser::data($data); $content->setPrettyOutput(true); echo $content->to('json'); // outputs in json format echo $content->to('xml'); // outputs in xml format
And also...
$content = Parser::file('path/to/my/file.json')->from('json'); echo $content->to('xml'); // outputs in xml format // or echo Parser::file('path/to/my/file.xml') ->from('xml') ->setPrettyOutput(true) ->to('yaml');
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email andre.r.flip@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-25