Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midhundevasia/json-ast
JSON to AST parser in PHP
https://github.com/midhundevasia/json-ast
Last synced: 13 days ago
JSON representation
JSON to AST parser in PHP
- Host: GitHub
- URL: https://github.com/midhundevasia/json-ast
- Owner: midhundevasia
- License: gpl-3.0
- Created: 2021-04-25T21:51:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T17:56:48.000Z (over 3 years ago)
- Last Synced: 2024-12-08T03:18:04.381Z (about 1 month ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json-ast : JSON to AST parser in PHP
[![Latest Stable Version](https://img.shields.io/packagist/v/midhundevasia/json-ast.svg?style=flat-square)](https://packagist.org/packages/midhundevasia/json-ast)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square)](https://php.net/)
[![Build Status](https://travis-ci.com/midhundevasia/json-ast.svg?branch=master)](https://travis-ci.com/midhundevasia/json-ast)## Install
$ composer require midhundevasia/json-ast
## Usage
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