PHPackages                             ceeram/authorize - 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. ceeram/authorize

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

ceeram/authorize
================

CakePHP plugin with authorization classes for AuthComponent.

1.0.0(12y ago)23166[1 issues](https://github.com/ceeram/Authorize/issues)MITPHPPHP &gt;=5.3.0

Since Sep 16Pushed 12y ago3 watchersCompare

[ Source](https://github.com/ceeram/Authorize)[ Packagist](https://packagist.org/packages/ceeram/authorize)[ Docs](http://github.com/FriendsOfCake/Authorize)[ RSS](/packages/ceeram-authorize/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Authorize plugin
================

[](#authorize-plugin)

[![Build Status](https://camo.githubusercontent.com/680a58c3a2912fe84f0b6708475c1373e36b04cc2cd2abf37801947f415735cb/68747470733a2f2f7472617669732d63692e6f72672f467269656e64734f6643616b652f417574686f72697a652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/FriendsOfCake/Authorize)[![Coverage Status](https://camo.githubusercontent.com/e852348b3223b560192a2a52446755576307803d01dee537f333e01ce56a047e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f467269656e64734f6643616b652f417574686f72697a652f62616467652e706e67)](https://coveralls.io/r/FriendsOfCake/Authorize)

Plugin containing some authorize classes for AuthComponent.

Current classes:

- AclAuthorize, row based Acl. AuthComponent adapter, to use together with AclBehavior created acos
- HabtmDbAcl. AclComponent adapter, for User habtm Group Acl. (for database acl only)

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

[](#requirements)

- PHP 5.2.8
- CakePHP 2.x

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

[](#installation)

*\[Manual\]*

- Download this:
- Unzip that download.
- Copy the resulting folder to app/Plugin
- Rename the folder you just copied to Authorize

*\[GIT Submodule\]*

In your app directory type:

```
git submodule add git://github.com/FriedsOfCake/Authorize.git Plugin/Authorize
git submodule init
git submodule update

```

*\[GIT Clone\]*

In your plugin directory type

```
git clone git://github.com/FriendsOfCake/Authorize.git Authorize

```

Usage
-----

[](#usage)

In `app/Config/bootstrap.php` add: `CakePlugin::load('Authorize');`

Configuration AclAuthorize:
---------------------------

[](#configuration-aclauthorize)

Setup the authorize class

Example:

```
    //in $components
    public $components = array(
        'Auth' => array(
            'authorize' => array(
                'Controller',
                'Authorize.Acl' => array('actionPath' => 'Models/')
            )
        )
    );
    //Or in beforeFilter()
    $this->Auth->authorize = array(
        'Controller',
        'Authorize.Acl' => array('actionPath' => 'Models/')
    );
```

In the above example `ControllerAuthorize` is checked first. If your `Controller::isAuthorized()`returns true on admin routing, AclAuthorize will only be checked for non-admin urls. Also you need to set `actionPath` in a similar way which is used with Actions- and CrudAuthorize.

Configuration HabtmDbAcl:
-------------------------

[](#configuration-habtmdbacl)

Setup the HabtmDbAcl adapter

in app/Config/core.php

```
Configure::write('Acl.classname', 'Authorize.HabtmDbAcl');
```

Make sure if you need to alter settings for HabtmDbAcl, you pass those to AclComponent `$settings['habtm']`, and have it loaded before any Auth configuration.

```
    //in $components
    public $components = array(
        'Acl' => array('habtm' => array(
            'userModel' => 'Users.User',
            'groupAlias' => 'Group'
        )),
        'Auth' => array(
            //your Auth settings
        )
    );
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4715d ago

### Community

Maintainers

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

---

Top Contributors

[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (20 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (2 commits)")[![rintaun](https://avatars.githubusercontent.com/u/82698?v=4)](https://github.com/rintaun "rintaun (1 commits)")

---

Tags

cakephpauthorize

### Embed Badge

![Health badge](/badges/ceeram-authorize/health.svg)

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[rainlab/user-plugin

User plugin for October CMS

11855.3k16](/packages/rainlab-user-plugin)[markstory/acl_extras

Additional tools for managing DB ACL in CakePHP applications.

154315.4k](/packages/markstory-acl-extras)[webtechnick/cakephp-facebook-plugin

CakePHP Facebook Plugin

43612.3k](/packages/webtechnick-cakephp-facebook-plugin)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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