PHPackages                             phauthentic/authorization - 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. phauthentic/authorization

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

phauthentic/authorization
=========================

A framework agnostic policy based authorization abstraction

1.0.0-beta(7y ago)51541MITPHPPHP ^7.1CI failing

Since Jan 29Pushed 4y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Authorization
=============

[](#authorization)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Scrutinizer Coverage](https://camo.githubusercontent.com/a2549713d5a01a9faed28b43ccefdcc1dd2e36aeaf3c656d0b75bb09d49c8d1b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f506861757468656e7469632f617574686f72697a6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Phauthentic/authorization/)[![Code Quality](https://camo.githubusercontent.com/64c59bd5c5d2151263d45e3a828d457c092867f1567219cdcace6f9b0c8f1a23/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f506861757468656e7469632f617574686f72697a6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Phauthentic/authorization/)[![phpstan Level 8](https://camo.githubusercontent.com/0ffaca208a4536b81438b687d1b3317cce63fdf8b2f9f7758375eba129629d3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2d4c6576656c253230352d627269676874677265656e3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0ffaca208a4536b81438b687d1b3317cce63fdf8b2f9f7758375eba129629d3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068707374616e2d4c6576656c253230352d627269676874677265656e3f7374796c653d666c61742d737175617265)[![php 7.4](https://camo.githubusercontent.com/21ff07741469ba5a63d844b547a05663cc368388b829102549548d44615696c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e342d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/21ff07741469ba5a63d844b547a05663cc368388b829102549548d44615696c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e342d626c75653f7374796c653d666c61742d737175617265)[![php 8.0](https://camo.githubusercontent.com/d6a8fb6ffc87c5916d6d384920d5e59eac5d23cc5d18e1f32129aa00337e6eb7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d6a8fb6ffc87c5916d6d384920d5e59eac5d23cc5d18e1f32129aa00337e6eb7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d626c75653f7374796c653d666c61742d737175617265)

A framework agnostic authorization library based on policies.

Authorization not Authentication
--------------------------------

[](#authorization-not-authentication)

This library intends to provide a policy based framework around authorization and access control. Authentication is a [separate concern](https://en.wikipedia.org/wiki/Separation_of_concerns) that has been packaged into a separate [authentication library](https://github.com/Phauthentic/authentication).

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

[](#installation)

Install it via [Composer](http://getcomposer.org):

```
composer require phauthentic/authorization

```

Documentation
-------------

[](#documentation)

- [Quick Start and Introduction to the basics](docs/Quick-start-and-introduction.md)
- [Policies](docs/Policies.md)
- [Policy Resolver](docs/Policy-Resolvers.md)
- [Checking Authorization](docs/Checking-Authorization.md)

Copyright &amp; License
-----------------------

[](#copyright--license)

Licensed under the [MIT license](LICENSE.txt).

- Copyright (C) [Phauthentic](https://github.com/Phauthentic)
- Copyright (C) [Cake Software Foundation, Inc.](https://cakefoundation.org)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 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

Unknown

Total

1

Last Release

2662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0643e6255da841fe65260ec6e263d8908a40a84b884c32e9fc6be6a15e252fa8?d=identicon)[burzum](/maintainers/burzum)

![](https://www.gravatar.com/avatar/8ea7e55d797f61a7a0448f1b88cfd5b855e9644c7909af356a82896587926197?d=identicon)[robertpustulka](/maintainers/robertpustulka)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (107 commits)")[![robertpustulka](https://avatars.githubusercontent.com/u/7437773?v=4)](https://github.com/robertpustulka "robertpustulka (77 commits)")[![burzum](https://avatars.githubusercontent.com/u/162789?v=4)](https://github.com/burzum "burzum (62 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (6 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (4 commits)")[![saeideng](https://avatars.githubusercontent.com/u/8215801?v=4)](https://github.com/saeideng "saeideng (4 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (3 commits)")[![floriankraemer](https://avatars.githubusercontent.com/u/4996022?v=4)](https://github.com/floriankraemer "floriankraemer (3 commits)")[![ravage84](https://avatars.githubusercontent.com/u/625761?v=4)](https://github.com/ravage84 "ravage84 (1 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (1 commits)")[![rochamarcelo](https://avatars.githubusercontent.com/u/850748?v=4)](https://github.com/rochamarcelo "rochamarcelo (1 commits)")[![josbeir](https://avatars.githubusercontent.com/u/26058?v=4)](https://github.com/josbeir "josbeir (1 commits)")[![a-sabaa](https://avatars.githubusercontent.com/u/1667759?v=4)](https://github.com/a-sabaa "a-sabaa (1 commits)")

---

Tags

accessaccess-controlauthorizationframework-agnosticlibraryphp7policypolicy-engineuser-authorizationauthaccessauthorizationpermissionsPolicy

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phauthentic-authorization/health.svg)

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

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[cakephp/authorization

Authorization abstraction layer plugin for CakePHP

742.2M34](/packages/cakephp-authorization)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[arcanedev/laravel-auth

Laravel Authorization package.

294.8k1](/packages/arcanedev-laravel-auth)

PHPackages © 2026

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