Libraries tagged by array casts
zakirullin/mess
22172 Downloads
Convenient array-related routine & better type casting
aveiv/mixed-value
60385 Downloads
MixedValue provides easy array access and the ability to convert/cast values
inspirum/xml
10137 Downloads
Simple XML writer and memory efficient XML reader with powerful xml-to-array cast
ghanuz/relations
3531 Downloads
To create a Eloquent relationships with comma separated foreign key or using a FIND_IN_SET mysql function.
coder-at-heart/object-models
1945 Downloads
Add schema, control and cast php json as objects and arrays for Laravel projects
zakirullin/typed-accessor
5 Downloads
Convenient array-related routine & better type casting
wplake/typed
35 Downloads
Lightweight PHP utility for seamless type-casting and data retrieval from dynamic variables, arrays, and objects.
spaf/simputils
5303 Downloads
Simple minimal but useful set of utils (properties, strings, datetimes, etc.)
lgouttefange/beavor
12709 Downloads
Lightweight library to cast array/std classes (generally as a result fo an api response) to a DTO class
eboreum/caster
2650 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.
danbettles/morf
480 Downloads
Morf is used to filter request-parameters *en masse*. It is configured with an array of definitions that describe each parameter you're interested in, and serves-up valid, type-cast values; it'll spit-out an exception when something's overtly wrong.
cerbero/transformer
541 Downloads
Transform, manipulate, cast and map objects and arrays.
parshikovpavel/psr-cache-adapter
17 Downloads
Adapter-decorator to cast a PSR-6 pool implementation to the PSR-16 simple cache interface
oktavlachs/data-mapping-service
846 Downloads
A type safe service, which maps raw data structures onto objects the >= PHP 8 way.
stahiralijan/request-caster
63 Downloads
This package intercepts Laravel Form Submits after successful validation and provides useful function and also casts the submitted form data accordingly e.g. Upper-case first Characters of Words, Capitalized them, and checkbox value "1" to boolean, JSON string to PHP Array conversions etc.