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

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

grifart/scoped-authorization
============================

v2.0.0(5y ago)024.7k↓38.2%3MITPHPPHP ~7.1 || ~8.0

Since Nov 9Pushed 5y agoCompare

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

READMEChangelogDependencies (8)Versions (3)Used By (0)

Scoped authorization
====================

[](#scoped-authorization)

Uses concept of "scopes" to define scope-specific roles for users.

This is useful when there are for users that gains project-level permissions. This means they have manager-level access to project A and guest-level access to project B.

Another user can have global role of administrator and can gain access to all projects without need of being part of a project.

Further sources
---------------

[](#further-sources)

- Matej's talk:
- Matej's example repo:
- CampApp issue:
- Mango web more complete implementation:
- Grifart fork: [gitlab](https://gitlab.grifart.cz/grifart/authorization), [github](https://github.com/grifart/manogweb-backend-authorization/tree/master)

Contributing
============

[](#contributing)

This repository is fork of [mangoweb-backend/authorization](https://github.com/mangoweb-backend/authorization).

Primary development place is [gitlab.grifart.cz](https://gitlab.grifart.cz/grifart/authorization). `master` is automatically replicated back to [github:grifart/manogweb-backend-authorization](https://github.com/grifart/manogweb-backend-authorization.git).

Submitting contribution into fork
---------------------------------

[](#submitting-contribution-into-fork)

### Internal contributions

[](#internal-contributions)

Use GitLab and open merge request, target: `master`. After merge it will be automatically propagated to GitHub.

### External contributions

[](#external-contributions)

**External developers:** Use GitHub, open pull request targeting [our master `master`](https://github.com/grifart/manogweb-backend-authorization/tree/master).

**Internal reviewer and maintainer:**

- fetch changes to local repo
- then merge into local `master`
- push local master into `gitlab/master` (this will be automatically propagated to GitHub)
- remove branches that are not needed anymore

Recommended git remotes setup
-----------------------------

[](#recommended-git-remotes-setup)

```
git remote add origin https://gitlab.grifart.cz/grifart/authorization.git
git remote add github-grifart https://github.com/grifart/manogweb-backend-authorization.git
git remote add github-mangoweb https://github.com/mangoweb-backend/authorization.git
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 55.2% 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 ~1152 days

Total

2

Last Release

1960d ago

Major Versions

v1.0 → v2.0.02021-01-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/939d12e9a77e30f843e33a785f81d8ee45b71bf2db88c0d32c0d36571c71a58d?d=identicon)[jkuchar](/maintainers/jkuchar)

---

Top Contributors

[![jkuchar](https://avatars.githubusercontent.com/u/133822?v=4)](https://github.com/jkuchar "jkuchar (16 commits)")[![matej21](https://avatars.githubusercontent.com/u/1276059?v=4)](https://github.com/matej21 "matej21 (6 commits)")[![vaclavpavek](https://avatars.githubusercontent.com/u/695438?v=4)](https://github.com/vaclavpavek "vaclavpavek (5 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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