Libraries tagged by casting
cviebrock/eloquent-typecast
72491 Downloads
Trait for Eloquent models to force type-casting on retrieved values
componenta/caster
6762 Downloads
Value casting attributes and resolvers for Componenta
snoeren-development/laravel-currency-casting
29408 Downloads
Cast currency attributes, stored as integer, to floats automatically.
calmohallag/nullable-casting
17435 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.
jooservices/dto
4505 Downloads
PHP 8.5+ DTO and Data library with immutable DTOs and mutable Data objects
fab2s/dt0
2833 Downloads
Immutable DTOs with bidirectional casting. No framework required. 8x faster than the alternative.
schulzefelix/laravel-data-transfer-object
44948 Downloads
Data Transfer Objects with Attribute Casting and Date Mutators.
pannella/laravel-cti
2851 Downloads
A Laravel package for Class Table Inheritance support with automatic subtype casting.
wheregroup/xml-parser
32131 Downloads
XML parser for casting hierarchical object
rennokki/eloquent-settings
4232 Downloads
Eloquent Settings allows you to bind key-value pairs to any Laravel Eloquent model. It supports even casting for boolean, float or integer types.
mr-luke/settings-manager
33840 Downloads
Laravel 5 Package that provides settings manager with type casting.
juanparati/embed-models
704 Downloads
Embed sub-models inside JSON fields in Laravel Eloquent models with full casting, validation, and mass assignment support
jardissupport/dotenv
2190 Downloads
Environment file loader with cascading overrides, variable interpolation, type casting, and include directives
hatchyu/laravel-settings
5071 Downloads
Enterprise-ready hierarchical multi-scope settings for Laravel with inheritance support, caching, and automatic value casting.
fab2s/laravel-dt0
2449 Downloads
Immutable Data Transfer Objects (DTO) for Laravel with validation, Eloquent casting, and encryption