helmich/phpunit-json-assert
Adds concise JSON assertions to PHPUnit using JSONPath expressions and JSON Schema validation. Use the JsonAssertions trait to verify complex JSON/data structures with readable assert* helpers. Install via Composer and choose the branch matching your PHPUnit/PHP version.
helmich/phpunit-json-assert extends PHPUnit with concise assertions for verifying complex arrays and JSON documents. It lets you validate nested structures using JSONPath expressions and enforce contracts via JSON Schema, making tests clearer and more maintainable.
Designed for multiple PHPUnit/PHP versions (via release branches), it integrates simply by adding a trait to your test cases and using new assert* methods to express intent directly.
How can I help you explore Laravel packages today?