PHPackages                             geniv/nette-identity-acl - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. geniv/nette-identity-acl

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

geniv/nette-identity-acl
========================

Identity ACL extension for Nette Framework

v2.1.1(7y ago)0628MITPHPPHP &gt;=7.0

Since Mar 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/geniv/nette-identity-acl)[ Packagist](https://packagist.org/packages/geniv/nette-identity-acl)[ RSS](/packages/geniv-nette-identity-acl/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

ACL
===

[](#acl)

Installation
------------

[](#installation)

```
$ composer require geniv/nette-identity-acl
```

or

```
"geniv/nette-identity-acl": "^2.1"
```

require:

```
"php": ">=7.0",
"nette/application": ">=2.4",
"nette/utils": ">=2.4",
"geniv/nette-general-form": ">=1.0",
"geniv/nette-identity-authorizator": ">=1.0"
```

Include in application
----------------------

[](#include-in-application)

neon configure:

```
#identity acl
identityAcl:
#    autowired: true
#    roleFormContainer: Identity\Acl\RoleFormContainer
#    resourceFormContainer: Identity\Acl\ResourceFormContainer
#    privilegeFormContainer: Identity\Acl\PrivilegeFormContainer
#    aclFormContainer: Identity\Acl\AclFormContainer
```

if you want to by redefine `aclFormContainer` then you must use extends, eg.: `class UserAclFormContainer extends AclFormContainer` and redefine only method: `public function getForm(Form $form)`. If you use all content of class `AclFormContainer` will be not function!

neon configure extension:

```
extensions:
    identityAcl: Identity\Acl\Bridges\Nette\Extension
```

**WARNING**: rename `role`, `resource` and `privilege` maybe given error in section ACL for NEON driver, because NEON ID are not linked to self. DIBI driver with relationships are OK.

presenters:

```
protected function createComponentRoleForm(RoleForm $roleForm): RoleForm
{
    //$roleForm->setTemplatePath(path);
    //$roleForm->onSuccess[] = function (Form $form, array $values) { };
    //$roleForm->onError[] = function (Form $form) { };
    return $roleForm;
}

protected function createComponentResourceForm(ResourceForm $resourceForm): ResourceForm
{
    //$resourceForm->setTemplatePath(path);
    //$resourceForm->onSuccess[] = function (Form $form, array $values) { };
    //$resourceForm->onError[] = function (Form $form) { };
    return $resourceForm;
}

protected function createComponentPrivilegeForm(PrivilegeForm $privilegeForm): PrivilegeForm
{
    //$privilegeForm->setTemplatePath(path);
    //$privilegeForm->onSuccess[] = function (Form $form, array $values) { };
    //$privilegeForm->onError[] = function (Form $form) { };
    return $privilegeForm;
}

protected function createComponentAclForm(AclForm $aclForm, AclFormContainer $aclFormContainer, IIdentityAuthorizator $identityAuthorizator): AclForm
{
    //$aclFormContainer->onRender = function ($data) { return $data; };
    //$aclFormContainer->setMultiSelect(true);

//    $this['aclForm']['form']->setDefaults($this['aclForm']->getDefaults($id));
//    $this['aclForm']['form']->setDefaults($identityAuthorizator->getAclForm($id));

    //$aclForm->setTemplatePath(path);
    //$aclForm->onSuccess[] = function (Form $form, array $values) use ($aclForm) { $aclForm->saveAcl(array $values) };
    //$aclForm->onError[] = function (Form $form) { };
    return $aclForm;
}
```

usage:

```
{control roleForm}
{control resourceForm}
{control privilegeForm}
{control aclForm}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Recently: every ~69 days

Total

11

Last Release

2632d ago

Major Versions

v1.0.7 → v2.0.02018-07-09

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v2.1.1PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc7e200eb4e96d99020297684063209160ea1347d8a2a8b4cd769d532204867e?d=identicon)[geniv](/maintainers/geniv)

---

Top Contributors

[![geniv](https://avatars.githubusercontent.com/u/563659?v=4)](https://github.com/geniv "geniv (45 commits)")

---

Tags

netteuseridentityaclgeniv

### Embed Badge

![Health badge](/badges/geniv-nette-identity-acl/health.svg)

```
[![Health](https://phpackages.com/badges/geniv-nette-identity-acl/health.svg)](https://phpackages.com/packages/geniv-nette-identity-acl)
```

###  Alternatives

[nette/security

🔑 Nette Security: provides authentication, authorization and a role-based access control management via ACL (Access Control List)

3769.6M306](/packages/nette-security)[2amigos/yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension

294282.0k15](/packages/2amigos-yii2-usuario)[yajra/laravel-acl

Laravel ACL is a simple role, permission ACL for Laravel Framework.

113112.5k1](/packages/yajra-laravel-acl)[saeven/zf3-circlical-user

Complete user entity, rights, and access module for Laminas

3718.9k](/packages/saeven-zf3-circlical-user)[gburtini/acl

Dependency free, simple access control lists for PHP.

3610.4k1](/packages/gburtini-acl)

PHPackages © 2026

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