vkovic/laravel-custom-casts
vkovic/laravel-custom-casts provides reusable, class-based custom attribute casts for Laravel Eloquent models, keeping get/set and serialization logic organized, testable, and out of your models—ideal for value objects, arrays, and other complex attribute transformations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| laracasts/generators | 0.85 | — | 2,415 | 2,463 | 343 | 25K | 15 | 33.6 | 24.9 | MIT | 3 years ago | |
| bgaze/laravel-kvstore | 0.84 | bgaze/laravel-kvstore provides a simple, database-backed key-value store for Laravel applications. Store and retrieve arbitrary values—strings, arrays, objects—through an intuitive API with dot-notation support, caching, and easy integration for app settings, preferences, and small configuration dat... | 19 | — | 0 | — | 0 | 16.9 | — | MIT | 2 months ago | |
| neuecommerce/model-casts | 0.84 | — | 0 | 0 | 0 | 4K | 0 | 0.0 | 49.3 | MIT | — | |
| laracasts/utilities | 0.84 | A collection of practical helpers and utilities from Laracasts for Laravel/PHP projects. Includes common convenience functions and small classes that streamline day-to-day development, reduce boilerplate, and support cleaner, more expressive code across your app. | 2,199 | 2,232 | 209 | 154K | 17 | 32.9 | 35.1 | MIT | 8 months ago | |
| toneflix/laravel-resource-modifier | 0.84 | Laravel Resource Modifier helps you customize Eloquent API resource output on the fly. Add, remove, or transform fields and tailor JSON responses without duplicating resource classes, keeping your Laravel APIs flexible, consistent, and clean. | 0 | 0 | 0 | 295 | 0 | 19.8 | 41.2 | MIT | 2 weeks ago | |
| folklore/eloquent-json-schema | 0.84 | Generate JSON Schema definitions directly from your Eloquent models. This package inspects attributes, casts, and relationships to build accurate schemas, making it easy to document APIs, validate payloads, and generate typed clients. | 3 | 3 | 1 | 1 | 0 | 0.0 | 1.3 | — | — | |
| jessarcher/laravel-castable-data-transfer-object | 0.84 | A Laravel package that lets Eloquent models cast attributes directly to data transfer objects, keeping structured data typed and clean while handling JSON serialization automatically. Ideal for replacing loose arrays with explicit DTO classes. | 325 | 333 | 22 | 2K | 3 | 1.7 | 8.3 | MIT | 3 years ago | |
| nicolopignatelli/valueobjects | 0.84 | Laravel-friendly PHP value objects library that helps you model domain concepts as immutable, self-validating objects (like Email, Money, Url, etc.). Encourages DDD patterns, clearer APIs, and safer data handling with consistent validation and comparison. | 0 | 430 | — | 0 | — | 0.0 | — | — | — | |
| laracasts/flash | 0.83 | Simple flash messaging for Laravel apps by Laracasts. Easily set session-based success, info, warning, and error messages and display them in your views with a clean API and customizable templates. Great for notifications after redirects. | 2,671 | 2,756 | 353 | 243K | 0 | 37.2 | 33.9 | — | 8 months ago | |
| laracasts/presenter | 0.83 | A lightweight presenter layer for Laravel that wraps your models and exposes clean, dedicated methods for formatting and displaying their data. Keep view logic out of models and controllers, with simple, testable presenter classes. | 863 | 882 | 111 | 90K | 14 | 32.2 | 41.3 | MIT | 2 months ago | |
| cviebrock/eloquent-typecast | 0.83 | — | 24 | 26 | 1 | 935 | 0 | 0.2 | 21.9 | MIT | — | |
| rawilk/laravel-casters | 0.83 | Collection of custom Eloquent cast classes for Laravel models. Add handy casts like Name to normalize and manipulate attributes automatically. Install via Composer; full docs available online. | 6 | 6 | 0 | 576 | 0 | 15.4 | 29.2 | MIT | 5 months ago | |
| coder-at-heart/object-models | 0.83 | — | 5 | 6 | 0 | 1 | 0 | 0.0 | 0.9 | MIT | — | |
| laravel-lang/translator | 0.83 | laravel-lang/translator is a Laravel package for streamlining translation of language files. It provides tooling to generate and manage locale strings, helping maintain multilingual applications and keep translations consistent across supported languages. | 2 | — | 3 | — | 0 | 3.8 | — | MIT | 10 months ago | |
| nnjeim/respond | 0.83 | — | 5 | 5 | 1 | 6 | 0 | 0.7 | 4.2 | MIT | 5 years ago | |
| michael-rubel/laravel-value-objects | 0.83 | Laravel Value Objects offers an abstract base class and Eloquent casts for turning model attributes into immutable value objects, with validation, comparison helpers, and PHP 8 support for cleaner, type-safe domain code. | 205 | 205 | 18 | 158 | 1 | 2.2 | 3.8 | MIT | 1 year ago | |
| 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 | |
| michael-rubel/laravel-formatters | 0.83 | Laravel Formatters provides a clean, extensible set of formatter classes for common tasks like money, phone numbers, names, dates, and more. Formatters auto-resolve through the container and support method chaining, making consistent formatting simple throughout your app. | 94 | 94 | 7 | 409 | 0 | 1.2 | 10.0 | MIT | 1 year ago | |
| andrey-helldar/laravel-json-response | 0.83 | A Laravel package for building consistent JSON API responses with a fluent helper, standard success and error payloads, HTTP status codes, headers, and resource support, simplifying controller output and keeping API responses uniform. | 12 | — | 1 | — | 0 | 4.1 | — | MIT | 7 months ago | |
| carsdotcom/laravel-json-model | 0.83 | A Laravel package for working with JSON-backed models, letting you define structured JSON data as Eloquent-style models and query or persist it through familiar Laravel conventions. Useful for flexible schemas, configuration, and document-style storage. | 1 | — | 1 | — | 5 | 20.8 | 1.3 | MIT | 4 weeks ago |
How can I help you explore Laravel packages today?