PHPackages                             newage/annotations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. newage/annotations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

newage/annotations
==================

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

1.0.4(4y ago)07.0kMITPHPPHP &gt;=5.4

Since May 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/newage/annotations)[ Packagist](https://packagist.org/packages/newage/annotations)[ Docs](https://github.com/newage/annotations)[ RSS](/packages/newage-annotations/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

Annotations
===========

[](#annotations)

[![Latest Version on Packagist](https://camo.githubusercontent.com/154d64529ec0df34b4ab16a8b13263d8cff360f25732ec1da6e4ae10fd7a138c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65776167652f616e6e6f746174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/newage/annotations)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7ec004c98ee44c439117bb4cd505502c9321783ed18940ff3d1ce2912ec79e39/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e65776167652f616e6e6f746174696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/newage/annotations)[![Coverage Status](https://camo.githubusercontent.com/2bfc91a22375f667225bae0daa0d8cd3305d3df13e0401b7ffc8e68764ba9223/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e65776167652f616e6e6f746174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/newage/annotations/code-structure)[![Quality Score](https://camo.githubusercontent.com/903764dd238317c84adf56369932e687632aa5e5578478a5a57522977e117c6c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e65776167652f616e6e6f746174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/newage/annotations)[![Total Downloads](https://camo.githubusercontent.com/fb268ffd95d325ab3729a3c694705c082179b12c00f806b66a913a86c6c0522a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e65776167652f616e6e6f746174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/newage/annotations)

A map of entity generator from annotations on console for Zend Framework 2. Project uses [PSR-2](http://www.php-fig.org/psr/psr-2/) coding style and [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading standard.

Install
-------

[](#install)

Via Composer

```
$ composer require newage/annotations
```

Usage
-----

[](#usage)

1. Copy a configuration file.

```
copy vendor/newage/annotations/config/annotations.global.php.dist config/autoload/annotations.global.php
```

2. Change a path and a namespace to your Entity for `AnnotationBuilder`.
3. Change a path for `MapperBuilder` to generating a file of map.
4. Add a module `Newage\Annotations` to your config.
5. Set annotations to your Entity. You can see examples [User](https://github.com/newage/annotations/wiki/User) and [Role](https://github.com/newage/annotations/wiki/Role) entities.
6. You need to start a console command:

```
zf mapper generate
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Vadim Leontiev](https://github.com/newage)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~395 days

Recently: every ~494 days

Total

6

Last Release

1714d ago

Major Versions

0.0.5 → 1.0.22020-10-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cdb20f2b32d73e11bc1d18ea00cedf6007b9d731e7f6547735bcde03718fa48?d=identicon)[newage](/maintainers/newage)

---

Top Contributors

[![newage](https://avatars.githubusercontent.com/u/426997?v=4)](https://github.com/newage "newage (19 commits)")

---

Tags

annotationszendframework2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/newage-annotations/health.svg)

```
[![Health](https://phpackages.com/badges/newage-annotations/health.svg)](https://phpackages.com/packages/newage-annotations)
```

###  Alternatives

[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k47](/packages/ecotone-ecotone)[phpro/soap-client

A general purpose SoapClient library

8896.1M53](/packages/phpro-soap-client)[api-platform/doctrine-common

Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm

274.4M48](/packages/api-platform-doctrine-common)[minime/annotations

The KISS PHP annotations library

233390.7k38](/packages/minime-annotations)[spiral/attributes

PHP attributes reader

244.4M64](/packages/spiral-attributes)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16160.8k8](/packages/hostnet-entity-tracker-component)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
