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

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

locality/cakephp-authorize
==========================

CakePHP plugin including a new authorize class for the Acl component.

06PHP

Since Nov 24Pushed 11y ago6 watchersCompare

[ Source](https://github.com/localitysolutions/cakephp-authorize)[ Packagist](https://packagist.org/packages/locality/cakephp-authorize)[ RSS](/packages/locality-cakephp-authorize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP Authorize
=================

[](#cakephp-authorize)

This plugin contains a new authorize class for use with the Acl component.

When the ActionsAuthorize maps requests to ACO nodes, it only allows for a maximum length of `/:plugin/:controller/:action`. The PathAuthorize class included with this plugin will allow you to use ACO nodes that include the record ID. So the path can now look like `/:plugin/:controller/:action/:id`. Allowing you to use the ACL to restrict access to individual records.

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

[](#requirements)

- PHP 5.2.8
- CakePHP 2.x

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

[](#installation)

*\[Git\]*

In your CakePHP plugin directory, run the following command:

```
	git clone https://github.com/localitysolutions/cakephp-authorize.git Authorize

```

*\[Composer\]*

Add to `require` in your composer.json file:

```
	{
		"require": {
			"locality/cakephp-authorize": "dev-master"
		}
	}
```

*\[Manual\]*

1. Download the zipfile from here:
2. Unzip the entire contents.
3. Rename the resulting folder to Authorize.
4. Finally, copy it to the app/Plugin directory.

Usage
-----

[](#usage)

Standard CakePHP plugin installation, in `app/Config/bootstrap.php` insert the line: `CakePlugin::load('Authorize');`

To use the PathAuthorize class for authorization:

```
	//in $components
	public $components = array(
	    'Auth' => array(
	        'authorize' => array(
	            'Authorize.Path' => array('actionPath' => 'controllers')
	        )
	    )
	);
    //Or in beforeFilter()
	$this->Auth->authorize = array(
	    'Authorize.Path' => array('actionPath' => 'controllers')
	);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/3917cd9c78f255b0874fcef63b24c9ede24e0808f577730a27686cc3a4f45811?d=identicon)[locality](/maintainers/locality)

---

Top Contributors

[![tanuck](https://avatars.githubusercontent.com/u/289004?v=4)](https://github.com/tanuck "tanuck (11 commits)")

### Embed Badge

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

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

###  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)
