Libraries tagged by cast
based/laravel-fluent
13277 Downloads
Define model attributes the fluent way. Automatically cast properties to native types.
sfneal/casts
59555 Downloads
An alternative implementation of the Eloquent Model accessors & mutators pattern for type casting attributes
setbased/helper-cast
28844 Downloads
Safely cast mixed values to bool, float, int, or string
redcrystal/cast
22673 Downloads
Laravel Value Objects: Cast your Eloquent model attributes to value objects with ease!
shin1x1/safe-cast
4530 Downloads
rawilk/laravel-casters
4993 Downloads
A collection of custom casts for Laravel.
pyrech/castor-example
24998 Downloads
lphilippo/laravel-castable-form-request
21901 Downloads
Laravel/Lumen package to add Eloquent-like casts to Form Requests.
jelix/castor
78876 Downloads
A template engine using a simple syntax
dgame/php-cast
6757 Downloads
calmohallag/nullable-casting
10139 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.
bbprojectnet/laravel-casts
1413 Downloads
Additional casts classes for Laravel.
tailflow/castable-dto
29160 Downloads
Automatically cast JSON columns to PHP objects in Laravel using Spatie's data-transfer-object class
simplon/helper
98692 Downloads
Helpers for recurring requirements
qtlenh/laravel-strict-validator
2097 Downloads
Add type constraints and coerce input types during validation