thruster / data-mapper-bundle
Thruster Mapper Bundle
Installs: 6 638
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0
- symfony/dependency-injection: >= 2.5
- symfony/http-kernel: >= 2.5
- thruster/data-mapper: ~2.0
Requires (Dev)
- phpunit/phpunit: ~5.0
README
[] (https://github.com/ThrusterIO/data-mapper-bundle/releases) [] (LICENSE) [] (https://travis-ci.org/ThrusterIO/data-mapper-bundle) [] (https://scrutinizer-ci.com/g/ThrusterIO/data-mapper-bundle) [] (https://scrutinizer-ci.com/g/ThrusterIO/data-mapper-bundle) [] (https://packagist.org/packages/thruster/data-mapper-bundle)
The Thruster DataMapper Bundle.
Install
Via Composer
$ composer require thruster/data-mapper-bundle
For PHP < 7.0
For older PHP version than PHP7 there is branch php5
$ composer require thruster/data-mapper-bundle ">=1.0,<2.0"
Usage
This bundle wraps DataMapper component to provide integration with Symfony by using tagged services.
<service id="some_data_mapper" class="SomeDataMapper"> <tag name="thruster_data_mapper"/> </service>
$output = $this->container->get('thruster_data_mappers')->getMapper(SomeMapper::class)->map($input);
Using provided trait
use DataMapperAwareTrait; //... $output = $this->getDataMapper(SomeMapper::class)->map($input);
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.