Download the PHP package zero-to-prod/transformable without Composer
On this page you can find all versions of the php package zero-to-prod/transformable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zero-to-prod/transformable
More information about zero-to-prod/transformable
Files in zero-to-prod/transformable
Download zero-to-prod/transformable
More information about zero-to-prod/transformable
Files in zero-to-prod/transformable
Vendor zero-to-prod
Package transformable
Short Description Transform a class into different types.
License MIT
Homepage https://github.com/zero-to-prod/transformable
Package transformable
Short Description Transform a class into different types.
License MIT
Homepage https://github.com/zero-to-prod/transformable
Keywords transformablezero-to-prod
Please rate this library. Is it a good library?
Informations about the package transformable
Zerotoprod\Transformable
Transform a class into different types.
Installation
You can install the package via Composer:
Additional Packages
- DataModel: Transform data into a class.
- DataModelHelper: Helpers for a
DataModel
. - DataModelFactory: A factory helper to set the value of your
DataModel
.
Methods
toArray(): array
Converts the object’s properties into an associative array.toJson(): string
Converts the object’s properties into a JSON string.
Usage
To use the Zerotoprod\Transformable\Transformable
trait in your class, simply include it:
All versions of transformable with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
ext-json Version *
ext-json Version *
The package zero-to-prod/transformable contains the following files
Loading the files please wait ....