newage / annotations
A map of entity generator from annotations on console for Zend Framework 2.
Installs: 7 020
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- doctrine/common: >=2.1
- laminas/laminas-code: >=2.4
Requires (Dev)
- phpunit/phpunit: >=4.8
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
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
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
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.