Libraries tagged by array casts

zakirullin/mess

212 Favers
33468 Downloads

Convenient array-related routine & better type casting

Go to Download


inspirum/xml

10 Favers
16213 Downloads

Simple XML writer and memory efficient XML reader with powerful xml-to-array cast

Go to Download


wplake/typed

22 Favers
1877 Downloads

Lightweight PHP utility for seamless type-casting and data retrieval from dynamic variables, arrays, and objects.

Go to Download


aveiv/mixed-value

3 Favers
151428 Downloads

MixedValue provides easy array access and the ability to convert/cast values

Go to Download


ghanuz/relations

7 Favers
6219 Downloads

To create a Eloquent relationships with comma separated foreign key or using a FIND_IN_SET mysql function.

Go to Download


sbwerewolf/language-specific

3 Favers
27929 Downloads

Read nested arrays safely and cast values predictably in PHP 8.4+

Go to Download


roundly-consulting/money-for-laravel

5 Favers
693 Downloads

Immutable arbitrary-precision Money and Currency value objects for Laravel: ISO 4217 + custom currencies, exact decimal parsing, rounding-safe arithmetic and allocation, locale formatting, Eloquent casts and schema macros, validation, discounts, tax, and pluggable exchange rates (array, database, ECB).

Go to Download


eboreum/caster

3 Favers
9656 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.

Go to Download


zakirullin/typed-accessor

213 Favers
6 Downloads

Convenient array-related routine & better type casting

Go to Download


oktavlachs/data-mapping-service

2 Favers
938 Downloads

A type safe service, which maps raw data structures onto objects the >= PHP 8 way.

Go to Download


lgouttefange/beavor

0 Favers
17218 Downloads

Lightweight library to cast array/std classes (generally as a result fo an api response) to a DTO class

Go to Download


stahiralijan/request-caster

13 Favers
100 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.

Go to Download


danbettles/morf

0 Favers
1015 Downloads

Morf was designed to filter request-parameters *en masse* but it is also useful in many other situations. A Morf *Filter* is created from an array of definitions that describes each parameter you're interested in, and serves-up valid, type-cast values; it'll spit-out an exception when something's overtly wrong.

Go to Download


coder-at-heart/object-models

6 Favers
2042 Downloads

Add schema, control and cast php json as objects and arrays for Laravel projects

Go to Download


cerbero/transformer

14 Favers
543 Downloads

Transform, manipulate, cast and map objects and arrays.

Go to Download


Next >>