thruster/data-mapper-bundle
Composer 安装命令:
composer require thruster/data-mapper-bundle
包简介
Thruster Mapper Bundle
README 文档
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.
统计信息
- 总下载量: 6.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-29