Libraries tagged by casts
spaf/simputils
5936 Downloads
Simple minimal but useful set of utils (properties, strings, datetimes, etc.)
titasgailius/larastan-extended
33 Downloads
An opinionated Larastan extension. Automatically parse model's casts() method.
tbpixel/xml-streamer
161 Downloads
Stream XML data and cast types to a provided classmap.
joerucci/laravel-domain-tools
222 Downloads
This package provides domain-driven design (DDD) support for Laravel applications by enhancing artisan make commands with --domain argument. When used, generated files (like models, casts, events, etc.) are placed into a specific domain folder within your app.
eboreum/caster
4380 Downloads
Cast any PHP value to a sensible, human readable string. Great for type-safe outputs, exception messages, transparency during debugging, and similar things. Also helps avoiding innate problems such as printing endless, circular referencing objects (endless recursion), limits the output for large arrays and long strings, and prevents (opt-in) the outputting of sensitive strings like passwords.
dottedai/laravel-model-annotator
211 Downloads
Laravel command to annotate Eloquent models with database schema, relationships, and casts.
derheyne/laravel-collection-mapwithcast
93 Downloads
Automatically cast values in Laravel collections when using mapWithCast with typed closures.
tailflow/castable-dto
29103 Downloads
Automatically cast JSON columns to PHP objects in Laravel using Spatie's data-transfer-object class
okipa/php-data-sanitizer
8994 Downloads
Data sanitizer to auto-cast entries, convert empty strings to null, etc.
lgouttefange/beavor
14046 Downloads
Lightweight library to cast array/std classes (generally as a result fo an api response) to a DTO class
dhii/stringable-interface
48712 Downloads
Interoperability interface for objects that can be cast to string
renoki-co/laravel-useful-casts
3577 Downloads
Laravel Useful Casts is a simple package for Laravel 7.0+ that comes with already-tested and already-written, useful casts for Eloquent models.
movor/laravel-custom-casts
172 Downloads
Make your own custom cast type for Laravel model attributes
grummfy/eloquent-extended-cast-model
19 Downloads
This library help you to make more advanced cast to eloquent model.
floor9design/laravel-casts-uuid
5019 Downloads
A class for casting ramsey/uuid into laravel models