php-standard-library/json
php-standard-library/json provides JSON encode/decode helpers with sensible defaults and typed exceptions. Safer, clearer error handling than native json_encode/json_decode, ideal for consistent JSON handling in PHP apps and libraries.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| yiisoft/json | 0.89 | Yii JSON is a lightweight PHP library for encoding/decoding JSON with sensible defaults. It throws JsonException on errors, supports JsonSerializable, DateTimeInterface and SimpleXMLElement, and includes safe HTML encoding for embedding JSON in pages. | 0 | 28 | — | 31K | — | 10.9 | 44.4 | — | — | |
| braincrafted/json | 0.88 | Object-oriented wrapper around PHP’s json_encode() and json_decode() providing simple static encode/decode methods plus exception-based error handling. Supports decoding to arrays or objects via Json::DECODE_ASSOC and Json::DECODE_OBJECT. | 2 | 3 | 0 | 0 | 0 | 0.3 | — | — | 11 years ago | |
| herrera-io/json | 0.87 | 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 | 50.8 | — | — | |
| basilicom/json-schema-request-validator-bundle | 0.87 | — | 0 | 1 | — | 30 | — | 1.2 | 16.2 | — | — | |
| justinrainbow/json-schema | 0.85 | Validate JSON documents against JSON Schema in PHP. Supports Draft-3, Draft-4, Draft-6 and Draft-7 (coverage varies). Install via Composer and use JsonSchema\Validator to validate data with local file $ref schemas and inspect validation errors. | 3,632 | 3,680 | 369 | 5M | 7 | 60.5 | 52.5 | MIT | 1 month ago | |
| egeloen/json-builder | 0.85 | PHP 5.6+ library to build JSON using Symfony PropertyAccess paths. Set nested values, arrays, and raw/unescaped values while retaining control over escaping. Produces JSON strings from a fluent builder API with strong test coverage. | 96 | 97 | 26 | 12K | 0 | 1.4 | 28.7 | MIT | — | |
| neomerx/json-api | 0.85 | Framework-agnostic PHP library implementing JSON:API v1.1. Builds compliant documents, relationships, compound includes, meta and errors. Parses/validates Accept/Content-Type and query params (pagination, sorting, sparse fields) to return proper 415/406 responses. | 737 | 743 | 66 | 24K | 8 | 16.9 | 23.2 | Apache-2.0 | 6 years ago | |
| ergebnis/json | 0.85 | Value object for representing valid JSON strings in PHP. Create Json instances from strings or files with strict validation and clear exceptions for invalid JSON, missing files, unreadable files, or non-JSON content. Install via Composer: ergebnis/json. | 25 | 25 | 1 | 1M | 2 | 8.2 | 58.0 | MIT | 9 months ago | |
| galbar/jsonpath | 0.84 | — | 208 | 211 | 39 | 223K | 7 | 9.1 | 44.1 | Apache-2.0 | 3 years ago | |
| camspiers/json-pretty | 0.84 | Pretty-print JSON in PHP 5.3. camspiers/json-pretty provides a simple JsonPretty class with a prettify() method to format arrays/JSON into readable, indented output. Install via Composer and use in a few lines. | 22 | 23 | 8 | 6K | 1 | 0.7 | 23.6 | MIT | 10 years ago | |
| event-engine/php-json-schema | 0.84 | Event Engine JSON Schema package for PHP. Generate/use JSON Schema with ImmutableRecord type detection. v1.x detects types via method return hints (PHP 7.2–7.3); v2.x uses PHP 7.4+ typed properties for improved schema support. | 6 | 6 | 4 | 2K | 1 | 6.0 | 33.7 | MIT | 1 year ago | |
| mcustiel/phiremock-client | 0.84 | PHP client for Phiremock Server with a fluent API to define HTTP expectations, manage scenarios, and reset server state. Works with Guzzle 6 by default, or any PSR-18 HTTP client by overriding the factory for custom connections. | 16 | 16 | 9 | 17K | 1 | 21.0 | 47.7 | GPL-3.0 | 1 month ago | |
| bf-dsf/json-request-bundle | 0.84 | — | 0 | 0 | 0 | 2 | 0 | 0.6 | 6.6 | MIT | 4 years ago | |
| symfony-bundles/json-request-bundle | 0.84 | Symfony bundle that decodes JSON request bodies and injects them into the Request parameter bag for easy controller handling. Supports common content types, validation-friendly input, and simplifies building JSON APIs by treating JSON like standard form data. | 50 | 51 | 19 | 26K | 1 | 1.0 | — | MIT | 5 years ago | |
| seld/jsonlint | 0.84 | seld/jsonlint is a PHP JSON parser/linter that provides clear, line-based parse error messages. Lint or parse JSON with exceptions, detect or collect duplicate keys, parse to assoc arrays, and optionally allow comments—ideal for validating user-edited JSON. | 0 | 1,348 | — | 3M | — | 15.7 | 47.9 | — | — | |
| elao/json-http-form-bundle | 0.84 | Symfony bundle that lets Forms handle JSON POST/PUT/PATCH/DELETE requests. Automatically detects JSON content-type, decodes request body, and submits data to your form; falls back to default HttpFoundation handling for normal GET/POST. | 35 | 35 | 4 | 82 | 0 | 3.0 | 7.4 | MIT | 2 years ago | |
| bibrokhim/laravel-force-json-response | 0.84 | Laravel middleware that forces every request to accept JSON by setting the Accept header to application/json when missing or different, ensuring your app consistently returns JSON responses. Install via composer require bibrokhim/laravel-force-json-response. | 0 | 0 | 0 | 44 | 0 | 0.3 | 22.4 | — | 2 years ago | |
| tbn/json-annotation-bundle | 0.84 | Symfony bundle that adds a @Json annotation for controllers to automatically return JSON responses. Wraps successful return arrays and exceptions into a consistent payload (success/data/message), with configurable keys, HTTP codes, and optional POST query echo/auth errors. | 0 | 1 | 0 | 1 | 0 | 0.9 | 2.9 | — | 7 years ago | |
| app-verk/api-test-cases | 0.84 | — | 1 | 1 | 4 | 0 | 0 | 3.1 | — | — | 4 years ago | |
| atheon/json-builder | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago |
How can I help you explore Laravel packages today?