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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jasonmccreary/laravel-test-assertions | 0.87 | Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. | 349 | 351 | 38 | 140K | 2 | 17.5 | 38.6 | — | 7 months ago | |
| estahn/phpunit-json-assertions | 0.87 | Expressive JSON assertions for PHPUnit. Verify API responses and JSON documents by structure, values, and types without manually decoding payloads or hand-checking nested arrays. Works with existing test cases to keep your suite readable, precise, and concise. | 35 | — | 8 | — | 1 | 1.0 | 1.5 | MIT | 5 years ago |
|
| stephenjude/api-test-helper | 0.86 | stephenjude/api-test-helper is a Laravel package that streamlines API testing with convenient helpers and expressive assertions for HTTP and JSON responses. It reduces boilerplate around authentication, request building, and response checks, helping you write cleaner, faster, more reliable API test... | 47 | — | 1 | — | 0 | 0.3 | — | MIT | 3 years ago | |
| lastdragon-ru/lara-asp-testing | 0.86 | Testing utilities for integrating Lara ASP into Laravel apps. Provides helpers, fakes, and assertions to simplify writing automated tests around ASP policies, decisions, and request/response flows in your application. | 0 | 0 | 0 | 75 | 0 | 0.0 | 26.0 | MIT | — | |
| http2jp/hpack-test-case | 0.85 | Generate and verify HPACK (HTTP/2 header compression) test cases for PHP. Provides fixtures and utilities to encode/decode header blocks and validate implementations against known-good examples. Handy for building or testing HTTP/2 clients/servers and HPACK libraries. | 47 | — | 12 | — | 2 | 1.0 | — | MIT | — |
|
| php-http/client-integration-tests | 0.85 | Integration test suite for PHP HTTP clients and adapters. Provides a shared test server and PHPUnit testsuite so you can verify that your client correctly implements the PSR-18 and HTTPlug contracts against real HTTP requests. | 16 | 17 | 10 | 555 | 1 | 19.6 | 23.7 | MIT | 4 months ago | |
| sixlive/laravel-json-schema-assertions | 0.85 | Validate JSON responses and payloads against JSON Schema definitions in your Laravel tests. Adds expressive assertions like assertJsonSchema so you can verify API structure and contracts with minimal setup. | 71 | 72 | 13 | 580 | 0 | 1.0 | 13.2 | MIT | 1 year ago | |
| herrera-io/phpunit-test-case | 0.85 | PHPUnit TestCase class and Extras trait that add helpers for common test chores: create/delete temporary files and directories, call protected/private methods, and get/set protected/private properties. Use as a base class or mix into your own test case. | 1 | 1 | 0 | 32 | 0 | 0.0 | 12.0 | MIT | — | |
| jcchavezs/httptest | 0.85 | Spin up a lightweight local HTTP server for integration testing real HTTP calls (e.g., cURL). Define a request handler to assert method/headers/body and craft responses, enabling client- and server-side assertions without mocking HTTP. | 9 | 9 | 1 | 199 | 2 | 1.7 | 18.2 | — | 8 years ago | |
| jsonpath-standard/jsonpath-compliance-test-suite | 0.85 | Compliance test suite for the JSONPath Standard. Provides a shared set of test cases and expected results to validate JSONPath implementations, track spec adherence, and compare behavior across languages and libraries. | 23 | — | 17 | — | 15 | 5.4 | 6.4 | NOASSERTION | — |
|
| behat/phpunit-assertions-extension | 0.85 | Behat extension that brings PHPUnit assertions into Behat step definitions, letting you use assertSame, assertTrue, and other familiar assertions in scenarios for clearer, more expressive test failures. | 1 | 1 | 0 | 2K | 1 | 18.0 | 49.5 | MIT | 1 month ago | |
| lastdragon-ru/phpunit-xml | 0.85 | Tools for working with PHPUnit’s XML configuration: parse, build, and validate phpunit.xml files programmatically. Useful for CI automation, config generation, and upgrades/migrations between PHPUnit versions, with a focused API designed for PHP projects. | 0 | 0 | 0 | 2 | 0 | 0.0 | 6.6 | MIT | — | |
| swaggest/json-schema | 0.84 | PHP library for JSON Schema (Draft 4/6/7): import schemas, validate JSON data, and define high-level PHP structures with schema-based rules. Supports $ref/definitions, formats, and detailed validation errors for robust data validation. | 487 | 494 | 53 | 303K | 24 | 20.5 | 47.1 | MIT | 1 year ago | |
| kherge/json | 0.84 | kherge/json is a PHP library for encoding and decoding JSON through a clean, object-oriented API. It adds validation, detailed error handling, and configurable formatting on top of PHP's native JSON functions, making data exchange safer and easier to manage. | 60 | — | 12 | — | 0 | 0.7 | — | NOASSERTION | — |
|
| webmozart/json | 0.84 | A robust PHP library for decoding, encoding, and validating JSON. It provides clear error messages with line and column details, JSON Schema validation, and convenient file handling via JsonFile, making JSON processing safer and easier in PHP applications. | 352 | — | 27 | — | 7 | 5.0 | 3.8 | MIT | 10 years ago |
|
| herrera-io/json | 0.84 | PHP library for working with JSON data: read, write, validate, and manipulate JSON structures with a simple API. Useful for encoding/decoding, handling JSON files, and keeping JSON processing consistent across your applications. | 0 | 52 | — | 5K | — | 0.0 | 51.4 | — | — | |
| ergebnis/json | 0.84 | ergebnis/json provides a Json value object for representing a valid JSON string. Create instances from strings or files, with clear exceptions for invalid JSON, missing or unreadable files. Ideal for safely handling JSON input in PHP applications. | 27 | 25 | 1 | 1M | 2 | 21.3 | 64.3 | MIT | 1 month ago | |
| testo/assert | 0.84 | Assertion plugin for the Testo PHP testing framework. Adds a fluent assert/expect facade, expectation lifecycle, and helpers for matching thrown exceptions. Reports comparisons through Testo’s standard pipeline. Install via Composer: testo/assert. | 0 | 0 | 0 | 16K | 0 | 0.0 | 55.3 | — | — | |
| phpunit/phpunit-dom-assertions | 0.84 | Adds expressive DOM assertions to PHPUnit for testing HTML and XML output, letting you assert elements, attributes, text content, and structure using a fluent, readable API built on Symfony's DomCrawler and CssSelector components. | 29 | — | 13 | — | 1 | 6.3 | — | NOASSERTION | 8 months ago |
|
| phperf/phpunit | 0.84 | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 193 | 0 | 0.9 | 31.2 | NOASSERTION | 4 years ago |
How can I help you explore Laravel packages today?