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.
CastsAttributes and CastsInboundAttributes. Strategic fit is low for greenfield or actively upgraded Laravel applications; it is primarily a legacy compatibility shim or migration artifact.$casts. Effort is low for a small number of attributes. Feasibility is constrained by the package’s last release in December 2020 and likely untested compatibility with current PHP and Laravel versions.toArray/serialization? How many existing models and cast classes depend on it? Is there a maintained fork or replacement? What is the cost to migrate to native Laravel casts? Does it block framework or PHP upgrades?$casts declarations. Replace package base classes with native CastsAttributes or CastsInboundAttributes implementations, preserving get/set semantics and null behavior. Add contract tests for hydration, persistence, serialization, and dirty tracking. Remove the Composer dependency once parity is proven.toArray(), toJson(), mass assignment, and attribute mutation.How can I help you explore Laravel packages today?