newage/annotations
Composer 安装命令:
composer require newage/annotations
包简介
A map of entity generator from annotations on console for Zend Framework 2.
README 文档
README
A map of entity generator from annotations on console for Zend Framework 2. Project uses PSR-2 coding style and PSR-4 autoloading standard.
Install
Via Composer
$ composer require newage/annotations
Usage
- Copy a configuration file.
copy vendor/newage/annotations/config/annotations.global.php.dist config/autoload/annotations.global.php
- Change a path and a namespace to your Entity for
AnnotationBuilder. - Change a path for
MapperBuilderto generating a file of map. - Add a module
Newage\Annotationsto your config. - Set annotations to your Entity. You can see examples User and Role entities.
- You need to start a console command:
zf mapper generate
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email vadim.leontiev@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 7.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-21