newage/annotations

A map of entity generator from annotations on console for Zend Framework 2.

1.0.4 2021-10-21 14:47 UTC

This package is auto-updated.

Last update: 2024-04-21 20:25:41 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

  1. Copy a configuration file.
copy vendor/newage/annotations/config/annotations.global.php.dist config/autoload/annotations.global.php
  1. Change a path and a namespace to your Entity for AnnotationBuilder.
  2. Change a path for MapperBuilder to generating a file of map.
  3. Add a module Newage\Annotations to your config.
  4. Set annotations to your Entity. You can see examples User and Role entities.
  5. 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.