Libraries tagged by casting
laminas/laminas-form
12589563 Downloads
Validate and display simple and complex forms, casting forms to business objects and vice versa
konekt/enum-eloquent
2101227 Downloads
Enum attribute casting for Eloquent models
henzeb/enumhancer
347139 Downloads
Your framework-agnostic Swiss Army knife for PHP 8.1+ native enums
zendframework/zend-form
14272628 Downloads
Validate and display simple and complex forms, casting forms to business objects and vice versa
jrfnl/php-cast-to-type
257839 Downloads
PHP Class to consistently cast variables to a specific type.
zakirullin/mess
30000 Downloads
Convenient array-related routine & better type casting
yiisoft/hydrator
141344 Downloads
Create and populate objects with type casting, mapping and dependencies resolving support.
waad/laravel-model-metadata
4097 Downloads
A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.
esensi/model
66969 Downloads
The base model traits of Esensi
yorcreative/laravel-argonaut-dto
3327 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.
wplake/typed
1191 Downloads
Lightweight PHP utility for seamless type-casting and data retrieval from dynamic variables, arrays, and objects.
inspirum/arrayable
135624 Downloads
PHP arrayable interface for handling casting to an array
cviebrock/eloquent-typecast
69845 Downloads
Trait for Eloquent models to force type-casting on retrieved values
snoeren-development/laravel-currency-casting
27768 Downloads
Cast currency attributes, stored as integer, to floats automatically.
calmohallag/nullable-casting
15293 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.