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

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

dgafka/authorization-security
=============================

Take care of authorization concerns for you. Takes out security out of your domain logic and provides clean and easy API to do it.

1.0.3(10y ago)219MITPHPPHP &gt;=5.4.0

Since Aug 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dgafka/Authorization-Security)[ Packagist](https://packagist.org/packages/dgafka/authorization-security)[ RSS](/packages/dgafka-authorization-security/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

Authorization Security
----------------------

[](#authorization-security)

[![Build Status](https://camo.githubusercontent.com/50b670e91b43cd6226c804acb4a999fbd15f0a1c9c10845094b844667f510964/68747470733a2f2f7472617669732d63692e6f72672f646761666b612f417574686f72697a6174696f6e2d53656375726974792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dgafka/Authorization-Security)

Authorization Security provides powerful open for extending library. The main idea behind it, is to provide easy to read, clean way of securing your applications.

Example usage of security:

```
    /*
    * @AuthorizationSecurity(type="standard", userFactory="roleUserFactory")
    * @AuthorizationExpression(" user.hasRole('moderator') and resource.isAvailable() ")
    * @AuthorizationResourceFactory("resourceFactory", parameters="article")
	* @AuthorizationPolicy("isMonday")
	* @AuthorizationPolicy("hasPremiumAccount")
    */
    public function changeArticle($command)

```

> Read Authorization Security Wiki to get known with library [Read Here](https://github.com/dgafka/Authorization-Security/wiki/1.-About)

> Add Annotation Security as dependency

```
    "require": {
        "dgafka/authorization-security": "*"
    }

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~16 days

Total

4

Last Release

3894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b6139b0dc15c550b22c76954ec6a96ac6c46b4c19b4a3c1e93c2146481e109e?d=identicon)[dgafka](/maintainers/dgafka)

---

Top Contributors

[![dgafka](https://avatars.githubusercontent.com/u/6060791?v=4)](https://github.com/dgafka "dgafka (3 commits)")

---

Tags

securityannotationsexpressionauthorizationsecure

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jms/security-extra-bundle

Enhances the Symfony2 Security Component by adding several new features

2628.1M59](/packages/jms-security-extra-bundle)[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)[lusitanian/oauth

PHP 7.2 oAuth 1/2 Library

1.1k23.2M121](/packages/lusitanian-oauth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)

PHPackages © 2026

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