Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Phpunit Json Assert

Phpunit Json Assert Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Assert values and structure with JSONPath-based selectors
  • Validate payloads against JSON Schema definitions
  • Cleaner tests for deeply nested, complex data structures
  • Works across multiple PHPUnit major versions via dedicated branches
  • Easy setup: install via Composer and use the JsonAssertions trait
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport