PHPackages                             ddelrio1986/ninja-authorization - 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. [Database &amp; ORM](/categories/database)
4. /
5. ddelrio1986/ninja-authorization

ActiveLibrary[Database &amp; ORM](/categories/database)

ddelrio1986/ninja-authorization
===============================

This is a ZF2 module that will provide an authorization layer to a ZF2 application.

v3.0(11y ago)23252[1 issues](https://github.com/ddelrio1986/NinjaAuthorization/issues)MITPHPPHP &gt;=5.3.3

Since Feb 5Pushed 9y ago3 watchersCompare

[ Source](https://github.com/ddelrio1986/NinjaAuthorization)[ Packagist](https://packagist.org/packages/ddelrio1986/ninja-authorization)[ Docs](https://github.com/ddelrio1986/NinjaAuthorization)[ RSS](/packages/ddelrio1986-ninja-authorization/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

NinjaAuthorization
------------------

[](#ninjaauthorization)

This is a ZF2 module that will provide an authorization layer to a ZF2 application. It offers functionality for persisting a Zend\\Permisions\\Acl implementation to the database, loading the ACL for a given user ID, and querying against the ACL for the currently authenticated user.

This module uses the Doctrine2 ORM and the NinjaServiceLayer package in order to setup a basis for a service layer.

It provides some example SQL that can be used to add the necessary tables to your database. It also provided an entity interface for your User entity so you'll want to make sure you User entity conforms to it.

The best way to integrate is to create your own entities that extends the abstract entities provided in this plugin and then used the Doctrine target entity resolver to make sure that your entities are used. It also best to create your own services which extend the ones provided here with the exception of the ACL service. It is fine to use that one directly.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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 ~231 days

Recently: every ~281 days

Total

6

Last Release

3319d ago

Major Versions

v1.1 → v2.02014-08-19

v2.0 → v3.02014-11-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c23397ce964764e51a729ef04c924908ebdecb20fd7d030d4588e7a8cd339f8?d=identicon)[ddelrio1986](/maintainers/ddelrio1986)

---

Top Contributors

[![ddelrio1986](https://avatars.githubusercontent.com/u/58251?v=4)](https://github.com/ddelrio1986 "ddelrio1986 (63 commits)")

---

Tags

doctrineauthorizationaclzf2ninja service layer

### Embed Badge

![Health badge](/badges/ddelrio1986-ninja-authorization/health.svg)

```
[![Health](https://phpackages.com/badges/ddelrio1986-ninja-authorization/health.svg)](https://phpackages.com/packages/ddelrio1986-ninja-authorization)
```

###  Alternatives

[laravel-doctrine/acl

ACL for Laravel and Doctrine

44445.3k7](/packages/laravel-doctrine-acl)[hounddog/doctrine-data-fixture-module

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

37335.4k9](/packages/hounddog-doctrine-data-fixture-module)[myclabs/acl

ACL library for Doctrine

1013.6k](/packages/myclabs-acl)[mamuz/mamuz-blog

Provides blog feature for ZF2 with Doctrine

101.1k1](/packages/mamuz-mamuz-blog)

PHPackages © 2026

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