Skip to content

midhundevasia/json-ast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-ast : JSON to AST parser in PHP

Latest Stable Version Minimum PHP Version Build Status

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

About

JSON to AST parser in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages