midhundevasia/json-ast
Composer 安装命令:
composer require midhundevasia/json-ast
包简介
JSON to AST parser in PHP
README 文档
README
Install
$ composer require midhundevasia/json-ast
Usage
<?php
use JsonAst\Parser;
$parser = new Parser();
$parser->parse(
'{"hello" : "World"}',
['loc' => true, 'source' => null]
);
Tests
$ ./vendor/bin/phpunit --testdox tests
Todo
- write more test cases
- code coverage
License
json-ast is licensed under GNU General Public License (GPLv3) - see the LICENSE file for details.
Credits
Inspired from following repositories.
https://github.com/vtrushin/json-to-ast
https://github.com/vtrushin/code-error-fragment
Development
$ vendor/bin/phpcbf src
$ vendor/bin/php-cs-fixer fix src
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2021-04-25