Libraries tagged by casting
cviebrock/eloquent-typecast
70709 Downloads
Trait for Eloquent models to force type-casting on retrieved values
cline/struct
10242 Downloads
Lean, attribute-driven Laravel data objects with explicit validation and Eloquent casting support
snoeren-development/laravel-currency-casting
28268 Downloads
Cast currency attributes, stored as integer, to floats automatically.
calmohallag/nullable-casting
15841 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
44450 Downloads
Data Transfer Objects with Attribute Casting and Date Mutators.
sbwerewolf/language-specific
23424 Downloads
Read nested arrays safely and cast values predictably in PHP 8.4+
pannella/laravel-cti
1932 Downloads
A Laravel package for Class Table Inheritance support with automatic subtype casting.
jasny/typecast
23318 Downloads
Type casting with basic logic
wplake/typed
1220 Downloads
Lightweight PHP utility for seamless type-casting and data retrieval from dynamic variables, arrays, and objects.
wheregroup/xml-parser
30741 Downloads
XML parser for casting hierarchical object
mr-luke/settings-manager
33280 Downloads
Laravel 5 Package that provides settings manager with type casting.
mjkhajeh/wporm
251 Downloads
WPORM is a lightweight, Eloquent-inspired ORM for WordPress plugins and themes. It provides expressive, fluent query building, model relationships, schema management, attribute casting, and event hooks—while fully supporting the WordPress database API and table prefixing. WPORM makes it easy to build modern, maintainable database code in any WordPress project.
juanparati/embed-models
592 Downloads
Embed sub-models inside JSON fields in Laravel Eloquent models with full casting, validation, and mass assignment support
jardissupport/dotenv
1376 Downloads
Environment file loader with cascading overrides, variable interpolation, type casting, and include directives
fab2s/laravel-dt0
1953 Downloads
Immutable Data Transfer Objects (DTO) for Laravel with validation, Eloquent casting, and encryption