sburba / strict-json
A strict and basic json parser
Installs: 8 800
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 1
Requires
- ext-json: *
Requires (Dev)
- couscous/couscous: ^1.7
- friendsofphp/php-cs-fixer: ^2.14
- infection/infection: ^0.13.0
- phpbench/phpbench: ^0.16.9
- phpstan/phpstan: ^0.11.5
- phpstan/phpstan-phpunit: ^0.11.0
- phpstan/phpstan-strict-rules: ^0.11.0
- phpunit/phpunit: ^8.0
README
StrictJson converts JSON into your plain old PHP classes
View the user documentation at https://sburba.github.io/strict-json/
Development
Working locally requires Docker or PHP 7.2 to be installed. The rest of these steps will assume you're using docker. If
you're not using docker, just run the commands without the scripts/run_in_docker.sh
prefix (And skip building the
image, obviously).
Build
Run scripts/build_docker.sh
to build the docker image
Install dependencies
Run scripts/run_in_docker.sh composer install
to install all the required dependencies
Validate Code
Run scripts/run_in_docker.sh scripts/check_all.sh
to check code style and run unit and mutation tests
Automatically fix code style
Run scripts/run_in_docker.sh vendor/bin/php-cs-fixer fix .
Preview docs
Run scripts/run_in_docker.sh vendor/bin/couscous preview 0.0.0.0:8000
Go to localhost:8000 to preview your documentation changes