novius/laravel-json-casted
Cast JSON columns in Laravel models with per-key casting. Define sub-key casts via a method or dedicated cast class; values are exposed as a Fluent object with proper types (e.g., Carbon dates). Supports PHP 8.2+ and Laravel 10+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| braincrafted/json | 0.87 | 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 | 2 | 0 | 0.3 | 2.2 | — | 11 years ago | |
| yorcreative/laravel-argonaut-dto | 0.85 | Laravel Argonaut DTO transforms arrays, objects, and collections into structured, immutable DTOs with deep nested casting, type-safe conversion, Laravel validation, attribute prioritization, and clean toArray/toJson serialization. | 106 | 105 | 6 | 2K | 0 | 19.9 | 21.1 | MIT | 1 month ago | |
| open-southeners/laravel-apiable | 0.85 | — | 13 | 13 | 1 | 289 | 2 | 29.5 | 21.6 | MIT | 1 week ago | |
| littlebug/laravel-repository | 0.84 | — | 35 | 36 | 9 | 23 | 0 | 4.0 | 3.0 | MIT | 5 years ago | |
| miladimos/laravel-toolkit | 0.84 | — | 7 | 7 | 2 | 9 | 0 | 0.1 | 4.5 | — | — | |
| 21torr/janus | 0.84 | Janus PHP provides shared configuration for CI and PHP code style tools, making it easy to standardize linting, formatting, and automation across projects. Includes ready-to-use presets and documentation for quick setup. | 0 | 0 | 0 | 537 | 0 | 17.3 | 41.8 | MIT | 4 months ago | |
| yiisoft/json | 0.84 | 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. | 29 | 29 | 9 | 60K | 2 | 2.1 | 45.9 | BSD-3-Clause | 11 months ago | |
| prettus/l5-repository | 0.84 | Prettus/l5-repository abstracts your Laravel app's data layer behind repositories, with built-in criteria, presenters, caching, validators, and generators. It keeps query logic reusable and controllers clean, making Eloquent-backed applications easier to maintain. | 4,195 | 4,261 | 878 | 322K | 234 | 76.4 | 54.8 | MIT | 5 months ago | |
| nyoncode/laravel-package-toolkit | 0.84 | Laravel Package Toolkit streamlines building Laravel packages with an expressive config API that auto-handles routes, migrations, views, translations, commands, and components, plus lifecycle hooks, middleware, events, and publishing options. | 0 | 0 | 0 | 3K | 0 | 24.8 | 55.6 | MIT | 2 weeks ago | |
| beste/json | 0.84 | JSON helpers for PHP and Laravel: decode/encode, safe access, casting, and convenient manipulation of JSON strings and arrays. A lightweight utility package focused on cleaner, less error-prone JSON handling in everyday applications. | 43 | 43 | 0 | 2M | 0 | 4.5 | 55.8 | MIT | 1 year ago | |
| jetcamp/laravel-json-api-client | 0.84 | Laravel package for consuming JSON:API services from your app. Provides a client layer to send requests and handle resources/relationships in a JSON:API-compatible way, aiming to simplify integration with external APIs. | 0 | 0 | 0 | 1 | 0 | 2.7 | 4.2 | — | 2 years ago | |
| nilportugues/serializer-eloquent | 0.84 | Eloquent ORM driver for nilportugues/serializer. Serialize Laravel/Eloquent models and their relationships into the Serializer library’s normalized array format, handling common Eloquent edge cases so you can reuse one consistent serialization layer across your app. | 5 | 5 | 7 | 65 | 2 | 4.6 | 15.2 | MIT | 9 years ago | |
| staudenmeir/eloquent-json-relations | 0.84 | Adds JSON foreign key support to Laravel Eloquent relationships (belongsTo, hasMany, morph*, through). Also enables many-to-many and has-many-through relations using JSON arrays (IDs or objects) across MySQL, Postgres, SQLite, SQL Server. | 1,080 | 1,084 | 64 | 344K | 6 | 24.2 | 37.9 | MIT | 8 months ago | |
| egeloen/json-builder | 0.84 | 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 | 24 | 9K | 0 | 1.3 | 27.0 | MIT | — | |
| php-standard-library/json | 0.84 | A small PHP Standard Library package for JSON encoding and decoding with typed exceptions and sensible defaults, providing predictable error handling for safer serialization in Laravel and other PHP projects. | 1 | 1 | 0 | 96K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| spatie/laravel-data | 0.83 | Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. | 1,801 | 1,815 | 293 | 4M | 6 | 51.4 | 63.7 | MIT | 1 week ago | |
| dorvidas/laravel-json-api-client | 0.83 | Laravel package for consuming JSON:API services with a simple client in Laravel apps. Helps you send requests, handle responses, and work with JSON:API resources in a structured way. Suitable for integrating external APIs with minimal boilerplate. | 2 | 2 | 1 | 0 | 1 | 0.4 | — | — | 8 years ago | |
| netresearch/jsonmapper | 0.83 | Map JSON to strongly-typed PHP objects with JSONMapper. Hydrate class properties from stdClass/arrays, support nested objects and collections, docblock/type-hint based mapping, and optional strict checking for missing or invalid fields. | 1,575 | 1,602 | 186 | 2M | 2 | 14.1 | 44.7 | OSL-3.0 | — | |
| boundwize/jsonrecast | 0.83 | JsonRecast is an editable JSON AST for PHP with visitor traversal and formatting-preserving printing. Update JSON content programmatically while keeping indentation, spacing, and key order intact, so output differs only where you made changes—ideal for composer.json and config files. | 5 | 6 | 0 | 186K | 0 | 33.9 | 64.4 | MIT | 3 weeks ago | |
| laravel-lang/json-fallback | 0.83 | Adds a JSON fallback translator to Laravel so missing JSON translation keys resolve to your fallback locale instead of showing raw keys. Drop-in service provider, no config required. | 16 | 16 | 2 | 574K | 0 | 10.3 | 59.0 | MIT | 7 months ago |
How can I help you explore Laravel packages today?