phrity/util-transformer
Lightweight PHP utility for transforming values between types. Provides transformers with canTransform()/transform(), plus resolvers to chain and recurse converters. Includes JSON/flatten decoders and converters for basic types, DateTime, enums, Stringable, Throwable and more.
Documentation / Types
The Type defines types as string, and is used as type definers throughout the library.
An extension may define its own types.
| Type constant | PHP type |
|---|---|
Type::ARRAY |
array |
Type::BOOLEAN |
boolean |
Type::INTEGER |
integer |
Type::NULL |
NULL |
Type::NUMBER |
double (float) |
Type::OBJECT |
object |
Type::STRING |
string |
How can I help you explore Laravel packages today?