2017 © Pedro Peláez
 

cakephp-plugin acl

Acl Plugin for CakePHP 3.x framework

image

cakephp/acl

Acl Plugin for CakePHP 3.x framework

  • Saturday, July 14, 2018
  • by cakephp
  • Repository
  • 47 Watchers
  • 91 Stars
  • 98,010 Installations
  • PHP
  • 16 Dependents
  • 1 Suggesters
  • 69 Forks
  • 10 Open issues
  • 18 Versions
  • 8 % Grown

The README.md

CakePHP Acl Plugin

Build Status Coverage Status License, (*1)

ℹ️ The ACL Plugin is not actively maintained by the CakePHP core team. ℹ️ PR's to fix problems are welcome., (*2)

As a modern alternative please check out the Authentication and Authorization plugins., (*3)

A plugin for managing ACL in CakePHP applications., (*4)

Installing via composer

You can install this plugin into your CakePHP application using composer., (*5)

The recommended way to install composer packages is:, (*6)

composer require cakephp/acl

Then in your src/Application.php:, (*7)

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

Creating tables

To create the ACL requires tables, run the following Migrations command:, (*8)

bin/cake migrations migrate -p Acl

Attaching the behavior

Add the Acl behavior to your table so it will automatically create an aco whenever a new record is saved:, (*9)

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

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

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->child relationships. Also make make sure the method returns either null or a parent Model reference., (*10)

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., (*11)

Running tests

Assuming you have PHPUnit installed system wide using one of the methods stated here, you can run the tests for the Acl plugin by doing the following:, (*12)

  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

The Versions

14/07 2018

dev-master

9999999-dev http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

14/07 2018

dev-saeideng-patch-1

dev-saeideng-patch-1 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

15/05 2018

0.3.3

0.3.3.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

25/04 2018

dev-fix-deprecated

dev-fix-deprecated http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

19/04 2018

0.3.2

0.3.2.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

18/04 2018

0.3.1

0.3.1.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

19/03 2018

0.3.0

0.3.0.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

23/01 2018

dev-bump-year

dev-bump-year http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

20/11 2017

0.2.6

0.2.6.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

24/05 2017

0.2.5

0.2.5.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

12/03 2017

0.2.4

0.2.4.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

10/01 2017

0.2.3

0.2.3.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

02/09 2016

dev-helper

dev-helper http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

24/08 2016

0.2.2

0.2.2.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

24/05 2016

0.2.1

0.2.1.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

19/05 2016

0.2.0

0.2.0.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

12/02 2016

0.1.0

0.1.0.0 http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp

15/04 2015

dev-aco-prefix-tree

dev-aco-prefix-tree http://cakephp.org

Acl Plugin for CakePHP 3.x framework

  Sources   Download

MIT

The Requires

 

The Development Requires

acl cakephp