Libraries tagged by casting
laminas/laminas-form
10801260 Downloads
Validate and display simple and complex forms, casting forms to business objects and vice versa
henzeb/enumhancer
213586 Downloads
Your framework-agnostic Swiss Army knife for PHP 8.1+ native enums
konekt/enum-eloquent
1630182 Downloads
Enum attribute casting for Eloquent models
zendframework/zend-form
14059469 Downloads
Validate and display simple and complex forms, casting forms to business objects and vice versa
zakirullin/mess
25588 Downloads
Convenient array-related routine & better type casting
yiisoft/hydrator
72034 Downloads
Create and populate objects with type casting, mapping and dependencies resolving support.
snoeren-development/laravel-currency-casting
22780 Downloads
Cast currency attributes, stored as integer, to floats automatically.
esensi/model
65885 Downloads
The base model traits of Esensi
jrfnl/php-cast-to-type
236342 Downloads
PHP Class to consistently cast variables to a specific type.
yorcreative/laravel-argonaut-dto
406 Downloads
Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.
waad/laravel-model-metadata
944 Downloads
A Laravel package for handling metadata with JSON casting and custom relation names.
inspirum/arrayable
96944 Downloads
PHP arrayable interface for handling casting to an array
cviebrock/eloquent-typecast
63224 Downloads
Trait for Eloquent models to force type-casting on retrieved values
calmohallag/nullable-casting
10234 Downloads
PHP supports expression casting to primitive type (like int) by using “( type ) expression”, but it currently doesn't allow to use a nullable type as introduced by PHP 7.1 (e.g. ?int). This library provide functions that extend native php casting, adding nullable casting.
schulzefelix/laravel-data-transfer-object
42272 Downloads
Data Transfer Objects with Attribute Casting and Date Mutators.