A map of entity generator from annotations on console for Zend Framework 2. Project uses PSR-2 coding style and PSR-4 autoloading standard.
Via Composer
$ composer require newage/annotations
- 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
MapperBuilder
to generating a file of map. - Add a module
Newage\Annotations
to 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
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email vadim.leontiev@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.