Download the PHP package picamator/transfer-object without Composer
On this page you can find all versions of the php package picamator/transfer-object. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download picamator/transfer-object
More information about picamator/transfer-object
Files in picamator/transfer-object
Package transfer-object
Short Description Transfer Object Generator based on property hooks and FixedArray.
License MIT
Informations about the package transfer-object
Transfer Object Generator
Would you like to build lightweight Transfer Objects (TO) easily? You're in the right place!
Build TOs Using an Array as a Blueprint
Imagine you have an array:
TO facade method helps to convert the array into a YML
definition file:
The generator console command builds TO based on the definition file:
How it works in action can be found on Wiki:
- Try Sample to generate Definition files
- Try Sample to generate TOs
- Try Advanced Sample to generate TOs
Key Features
- Interface methods: implements
fromArray()
,toArray()
- Standard interfaces: implements
IteratorAggregate
,JsonSerializable
, andCountable
- Lightweight: TO includes only data without any business logic
- Nullable: supports both attribute types nullable and not nullable (
required:
) - BackedEnum: supports
BackedEnum
- Adaptable: compatible with custom Data Transfer Object (DTO) implementation
Installation
Composer installation:
Usage
Terminal
Run command bellow to generate Transfer Objects:
Please check Wiki for more details:
Facade Interface
Facade interface DefinitionGeneratorFacadeInterface
is used to generate the YML
definition file based on the array.
Please check Wiki for more details:
Acknowledgment
Many thanks for your contribution, support, feedback and simply using the Transfer Object Generator!
Contribution
If you find this project useful, please add a star to the repository. Follow the project to stay updated with all activities. If you have suggestions for improvements or new features, feel free to create an issue or submit a pull request. Here is a Contribution Guide.
This project is released with a Code of Conduct. By participating in this project and its community, you agree to abide by those terms.
License
Transfer Object Generator is free and open-source software licensed under the MIT License. For more details, please see the LICENSE file.
All versions of transfer-object with dependencies
composer-runtime-api Version ^2.2
psr/container Version ^2.0
symfony/console Version ^7.0
symfony/filesystem Version ^7.0
symfony/finder Version ^7.0
symfony/yaml Version ^7.0