Skip to content
A JSON mapping library that does one thing, and does it okay.
PHP Shell Dockerfile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add PHPStan to the CI process Apr 28, 2019
benchmark Benchmark handwritten alternative to StrictJson to compare performance Apr 21, 2019
docs
scripts Require 100 mutation coverage Jul 2, 2019
src Simplify handling exceptions from adapters Jul 20, 2019
test Allow base type adapters Jul 12, 2019
.gitignore Move user docs into their own directory Apr 13, 2019
Dockerfile Use the default development php settings Jul 2, 2019
LICENSE Create LICENSE Jun 2, 2019
README.md Add a coverage badge Apr 14, 2019
composer.json Set exact php platform version Jul 8, 2019
composer.lock Bump infection/infection from 0.13.3 to 0.13.4 Jul 2, 2019
couscous.yml Add install instructions May 24, 2019
infection.json.dist Require 100 mutation coverage Jul 2, 2019
phpbench.json.dist Add a script to run benchmarks Apr 20, 2019
phpstan.neon.dist Add PHPStan to the CI process Apr 28, 2019
phpunit.xml

README.md

StrictJson

Coverage

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

You can’t perform that action at this time.