boshurik / mapper-bundle
Mapper bundle
Installs: 3 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.2 | ^8.0
- ext-json: *
- boshurik/mapper: ^0.2
- symfony/framework-bundle: ^4.0|^5.0|^6.0|^7.0
Requires (Dev)
- nikic/php-parser: ^4.2
- phpunit/phpunit: ^8.0
- symfony/console: ^4.0|^5.0|^6.0|^7.0
Suggests
- ext-json: For code (models and mappings) generation
- nikic/php-parser: For code (models and mappings) generation
- symfony/console: For code (models and mappings) generation
README
Integrates boshurik/mapper to Symfony
Usage
composer require boshurik/mapper-bundle
Bundle introduce two interfaces
BoShurik\MapperBundle\Mapper\Mapping\MappingInterface
and
BoShurik\MapperBundle\Mapper\Mapping\ReverseMappingInterface
for one-way and two-way mappings respectively
Code generation
Code generation based on PHP-Parser
composer require nikic/php-parser
Generating model
bin/console mapper:generate:model
Generating mapping
bin/console mapper:generate:mapping