it-bens / object-transformer-bundle
Bundle that provides the object-transformer package via Symfony services.
Installs: 93
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^8.0
- it-bens/object-transformer: ^0.2
- symfony/config: ^4.4|^5.0
- symfony/dependency-injection: ^4.4|^5.0
- symfony/http-kernel: ^4.4|^5.0
Requires (Dev)
- captainhook/plugin-composer: ^5.3
- phpstan/phpstan: ^0.12.99
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-11-15 16:45:00 UTC
README
How to install the bundle?
The package can be installed via Composer:
composer require it-bens/object-transformer-bundle
If you're using Symfony Flex, the bundle will be automatically enabled. For older apps, enable it in your Kernel class.
How to use the Object Transformer Bundle?
The TransformationMediator
is registered as a service and all implementations of the TransformerInterface
are registered as transformers in the mediator (if they are configured via autoconfiguration).
Otherwise, the transformers have to be tagged with itb_object_transformer.transformer
.
The usage of the object transformer is described here: GitHub - The Object Transformer.
Contributing
I am really happy that the software developer community loves Open Source, like I do! ♥
That's why I appreciate every issue that is opened (preferably constructive) and every pull request that provides other or even better code to this package.
You are all breathtaking!