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

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

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

AclManager plugin for CakePHP

22PHP

Since Jul 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mehdi-fathi/AclManager)[ Packagist](https://packagist.org/packages/acl-manager/acl)[ RSS](/packages/acl-manager-acl/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

AclManager
==========

[](#aclmanager)

Plugin to create Acl for CakePHP 3

Note :

This is a stable plugin for CakePHP 3.0 at this time.This is like Acl on cakephp 2 but has a little different.

you can by use of AclManager create access level for all users.also this is for access level plugin and controller

AclManager plugin for CakePHP
=============================

[](#aclmanager-plugin-for-cakephp)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require acl-manager/acl

```

configrations
=============

[](#configrations)

Step 1
------

[](#step-1)

In your `config\bootstrap.php`:

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

Create tables

To create ACL related tables, run the following Migrations command:

```
bin/cake migrations migrate -p AclManager
```

Step 2
------

[](#step-2)

You must create values of acos,roles,acos\_roles.Well you can use of Shell Acl of plugin. for example :

```
acos create root plugin
```

```
acos create controller Users index
```

You can see all commands on the help of shell.

Note
----

[](#note)

If you have prefix you must will enter prefix\_action for example : admin\_index that is like Cakephp 2

```
acos create controller Resellers admin_index
```

Step 3
------

[](#step-3)

### Controller

[](#controller)

you must write this code on method isAuthorized Appcontroller :

```
public function isAuthorized($user)
{
    if (empty($this->request->params['plugin']))
    {
        $AclManager = $this->loadComponent('AclManager.Check');
        if (empty($this->request->params['plugin']))
        {

            $check_action_curent = $AclManager->Check_request('controller', $this->Auth->
            allowedActions);

            if (!$check_action_curent)
            {
                return false;
            }else {
                return true;
            }

        }
    }
}
```

### plugin

[](#plugin)

you must write this code on method isAuthorized Appcontroller on your plugin :

### Make Grade

[](#make-grade)

Also you can create Grade via your controller for example :

```
    $Grade = $this->loadComponent('AclManager.Grade');

    $Grade->gradecontroller('user','users','admin_edit'); //** $Grade->gradecontroller(name of roll,controller,action);  **//
```

Note
====

[](#note-1)

You must change method beforefilter on other controller for example :

```
class UsersController extends AppController
{
    public function beforeFilter(Event $event = null)
    {
        $this->Auth->allow(['edit']);
        parent::beforeFilter($event);//** we must have parent beforfilter **//
    }
}
```

This code is for dosen't check action edit in plugin Acl.Thats why you allow edit on Auth.This plugin needs develope for will be complete

Enjoy!

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/95e8f8361dace768b9fb4417e7b61297f0d57c6faafb9186b47b3ebc9448fb7a?d=identicon)[mehdi-fathi](/maintainers/mehdi-fathi)

---

Top Contributors

[![mehdi-fathi](https://avatars.githubusercontent.com/u/11867691?v=4)](https://github.com/mehdi-fathi "mehdi-fathi (4 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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