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
Contents
- Introduction
- Requirements
- Installation
- Additional Packages
- Usage
- Methods
- Local Development
- Contributing
Introduction
Transform a class into different types.
Requirements
- PHP 7.1 or higher.
Installation
Install Zerotoprod\Transformable
via Composer:
This will add the package to your project’s dependencies and create an autoloader entry for it.
Additional Packages
- DataModel: Transform data into a class.
- DataModelHelper: Helpers for a
DataModel
. - DataModelFactory: A factory helper to set the value of your
DataModel
.
Usage
To use the Zerotoprod\Transformable\Transformable
trait in your class, simply include it:
Methods
toArray(): array
Converts the object’s properties into an associative array.toJson(): string
Converts the object’s properties into a JSON string.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
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 ....