PHPackages                             cakephp/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. [Framework](/categories/framework)
4. /
5. cakephp/acl

ActiveCakephp-plugin[Framework](/categories/framework)

cakephp/acl
===========

Acl Plugin for CakePHP framework

0.10.1(2y ago)109567.1k↓49.4%86[13 issues](https://github.com/cakephp/acl/issues)15MITPHPPHP &gt;=7.2CI failing

Since Feb 12Pushed 2y ago37 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (25)Used By (15)

CakePHP Acl Plugin
==================

[](#cakephp-acl-plugin)

[![Build Status](https://camo.githubusercontent.com/fc3df378346684956ca41c5f1be45120b5454455dad747978ac012ea06968b90/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63616b657068702f61636c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cakephp/acl)[![Coverage Status](https://camo.githubusercontent.com/65950f2cb7dd3f0b507f945e43ef89e5eeea3b4232eb88b4f5080ac45bf1d917/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f63616b657068702f61636c2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/cakephp/acl)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

> ℹ️ **The ACL Plugin is not actively maintained by the CakePHP core team.** ℹ️ PR's to fix problems are welcome.
>
> As a modern alternative please check out the [Authentication](https://github.com/cakephp/authentication) and [Authorization](https://github.com/cakephp/authorization) plugins.

A plugin for managing ACL in CakePHP applications.

Installing via composer
-----------------------

[](#installing-via-composer)

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

The recommended way to install composer packages is:

```
composer require cakephp/acl

```

Then in your `src/Application.php`:

```
public function bootstrap()
{
    parent::bootstrap();
    $this->addPlugin('Acl');
}
```

Creating tables
---------------

[](#creating-tables)

To create the ACL requires tables, run the following `Migrations` command:

```
bin/cake migrations migrate -p Acl

```

Attaching the behavior
----------------------

[](#attaching-the-behavior)

Add the `Acl` behavior to your table so it will automatically create an `aco` whenever a new record is saved:

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

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

Updating the entity
-------------------

[](#updating-the-entity)

Before you can start using the behavior, you MUST add the `parentNode()` method to the corresponding `Entity` file or the `AclBehavior` will not be able to determine the parent-&gt;child relationships. Also make make sure the method returns either null or a parent Model reference.

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

> If things went well you should now see an entry appearing in the `acos` database table whenever you save a new record.

Running tests
-------------

[](#running-tests)

Assuming you have PHPUnit installed system wide using one of the methods stated [here](https://phpunit.de/manual/current/en/installation.html), you can run the tests for the Acl plugin by doing the following:

1. Copy `phpunit.xml.dist` to `phpunit.xml`
2. Add the relevant database credentials to your phpunit.xml if you want to run tests against a non-SQLite datasource.
3. Run `phpunit`

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community42

Growing community involvement

Maturity58

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~200 days

Total

23

Last Release

823d ago

PHP version history (2 changes)0.7.0PHP ^7.2

0.8.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23666?v=4)[CakePHP](/maintainers/cakephp)[@cakephp](https://github.com/cakephp)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (498 commits)")[![phpnut](https://avatars.githubusercontent.com/u/148097?v=4)](https://github.com/phpnut "phpnut (260 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (189 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (81 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (77 commits)")[![jrbasso](https://avatars.githubusercontent.com/u/26548?v=4)](https://github.com/jrbasso "jrbasso (60 commits)")[![nateabele](https://avatars.githubusercontent.com/u/18288?v=4)](https://github.com/nateabele "nateabele (58 commits)")[![predominant](https://avatars.githubusercontent.com/u/24568?v=4)](https://github.com/predominant "predominant (50 commits)")[![dakota](https://avatars.githubusercontent.com/u/83255?v=4)](https://github.com/dakota "dakota (49 commits)")[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (43 commits)")[![shama](https://avatars.githubusercontent.com/u/99604?v=4)](https://github.com/shama "shama (22 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (19 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (19 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (17 commits)")[![nook24](https://avatars.githubusercontent.com/u/9019992?v=4)](https://github.com/nook24 "nook24 (13 commits)")[![antograssiot](https://avatars.githubusercontent.com/u/4977112?v=4)](https://github.com/antograssiot "antograssiot (11 commits)")[![Ivoz](https://avatars.githubusercontent.com/u/199266?v=4)](https://github.com/Ivoz "Ivoz (9 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (8 commits)")[![jameswatts](https://avatars.githubusercontent.com/u/403296?v=4)](https://github.com/jameswatts "jameswatts (8 commits)")[![tsmsogn](https://avatars.githubusercontent.com/u/595966?v=4)](https://github.com/tsmsogn "tsmsogn (7 commits)")

---

Tags

aclcakephpcakephp-pluginphpcakephpacl

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M171](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M202](/packages/cakephp-bake)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)[cakephp/twig-view

Twig powered View for CakePHP

155.7M19](/packages/cakephp-twig-view)

PHPackages © 2026

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