PHPackages                             funayaki/acl-manager - 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. funayaki/acl-manager

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

funayaki/acl-manager
====================

This CakePHP plugin is an interface to manage an ACL protected web application.

2.x-dev(10y ago)03[1 issues](https://github.com/funayaki/acl-manager/issues)MITPHPPHP &gt;=5.3.0

Since Mar 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/funayaki/acl-manager)[ Packagist](https://packagist.org/packages/funayaki/acl-manager)[ Docs](http://www.alaxos.ch/blaxos/pages/view/34)[ RSS](/packages/funayaki-acl-manager/feed)WikiDiscussions master Synced 3d ago

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

ACL Manager for CakePHP 3.x
===========================

[](#acl-manager-for-cakephp-3x)

Version: 2.3.0 Date: 2013-05-02 Author: Nicolas Rod Website: [http://www.alaxos.net/blaxos/pages/view/plugin\_acl\_2.0](http://www.alaxos.net/blaxos/pages/view/plugin_acl_2.0)License:  The MIT License

Requirements
------------

[](#requirements)

- CakePHP 3.x
- Acl (see )
- CakeJs (see )

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

[](#installation)

### Install acl and cakephp-js

[](#install-acl-and-cakephp-js)

At first, you need to install `acl` and `cakephp-jp` plugins using composer.

The recommended way to install composer packages is:

```
composer require cakephp/acl
composer require oldskool/cakephp-js:dev-master
```

### Enable acl plugin

[](#enable-acl-plugin)

In 3.0 you need to enable the plugin your `config/bootstrap.php` file:

```
Plugin::load('Acl', ['bootstrap' => true]);
```

### Install acl-manager

[](#install-acl-manager)

*\[Manual\]*

- Download and unzip the repo (see the download button somewhere on this git page)
- Copy the resulting folder into `plugins`
- Rename the folder you just copied to `AclManager`

*\[GIT Submodule\]*

In your `app` directory type:

```
git submodule add -b master git://github.com/tsmsogn/acl-manager.git plugins/AclManager
git submodule init
git submodule update
```

*\[GIT Clone\]*

In your `plugins` directory type:

```
git clone -b master git://github.com/tsmsogn/acl-manager.git AclManager
```

### Enable plugin

[](#enable-plugin)

In 3.0 you need to enable the plugin your `config/bootstrap.php` file:

```
Plugin::load('AclManager', ['bootstrap' => true, 'routes' => true, 'autoload' => true]);
```

### Acting as a requester

[](#acting-as-a-requester)

Add `$this->addBehavior('Acl.Acl', ['type' => 'requester']);` to the initialize function in the files `src/Model/Table/RolesTable.php` and `src/Model/Table/UsersTable.php`:

```
    public function initialize(array $config) {
        parent::initialize($config);

        $this->addBehavior('Acl.Acl', ['type' => 'requester']);
    }
```

### Implement parentNode function in Role entity

[](#implement-parentnode-function-in-role-entity)

Add the following implementation of parentNode to the file src/Model/Entity/Role.php:

```
    public function parentNode()
    {
        return null;
    }
```

### Implement parentNode function in User entity

[](#implement-parentnode-function-in-user-entity)

Add the following implementation of parentNode to the file src/Model/Entity/User.php:

```
    public function parentNode()
    {
        if (!$this->id) {
            return null;
        }
        if (isset($this->role_id)) {
            $roleId = $this->role_id;
        } else {
            $Users = TableRegistry::get('Users');
            $user = $Users->find('all', ['fields' => ['role_id']])->where(['id' => $this->id])->first();
            $roleId = $user->role_id;
        }
        if (!$roleId) {
            return null;
        }
        return ['Roles' => ['id' => $roleId]];
    }
```

Visit acl-manager using browser
-------------------------------

[](#visit-acl-manager-using-browser)

Visit `/admin/acl_manager/acos/index` using browser, you will see anything.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.3% 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

Unknown

Total

1

Last Release

3712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7eac05b31b47cce78a6dfdc727bfbecb290bb12b1591cc5be7e1ce63e25666d5?d=identicon)[tsmsogn](/maintainers/tsmsogn)

---

Top Contributors

[![tsmsogn](https://avatars.githubusercontent.com/u/595966?v=4)](https://github.com/tsmsogn "tsmsogn (102 commits)")[![b0n](https://avatars.githubusercontent.com/u/205789?v=4)](https://github.com/b0n "b0n (4 commits)")[![oldskool](https://avatars.githubusercontent.com/u/567664?v=4)](https://github.com/oldskool "oldskool (1 commits)")

### Embed Badge

![Health badge](/badges/funayaki-acl-manager/health.svg)

```
[![Health](https://phpackages.com/badges/funayaki-acl-manager/health.svg)](https://phpackages.com/packages/funayaki-acl-manager)
```

###  Alternatives

[markstory/acl_extras

Additional tools for managing DB ACL in CakePHP applications.

155311.0k](/packages/markstory-acl-extras)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[stuttter/wp-user-signups

The best way to manage user &amp; site sign-ups in WordPress

46208.9k5](/packages/stuttter-wp-user-signups)[winter/wn-user-plugin

User plugin for Winter CMS

1233.5k13](/packages/winter-wn-user-plugin)[rainlab/userplus-plugin

User plus plugin for October CMS

168.8k2](/packages/rainlab-userplus-plugin)

PHPackages © 2026

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