PHPackages                             marko/admin-auth - 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. marko/admin-auth

ActiveMarko-module[Authentication &amp; Authorization](/categories/authentication)

marko/admin-auth
================

Admin authentication and authorization for Marko Framework

0.7.0(2mo ago)0602MITPHPPHP ^8.5

Since Mar 25Pushed 3w agoCompare

[ Source](https://github.com/marko-php/marko-admin-auth)[ Packagist](https://packagist.org/packages/marko/admin-auth)[ RSS](/packages/marko-admin-auth/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (28)Versions (18)Used By (2)

marko/admin-auth
================

[](#markoadmin-auth)

Admin authentication and role-based authorization---manages admin users, roles, permissions, and access control for the admin panel.

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

[](#installation)

```
composer require marko/admin-auth
```

Quick Example
-------------

[](#quick-example)

```
use Marko\AdminAuth\Attributes\RequiresPermission;
use Marko\AdminAuth\Middleware\AdminAuthMiddleware;
use Marko\Routing\Attributes\Get;
use Marko\Routing\Attributes\Middleware;

class ProductController
{
    #[Get('/admin/catalog/products')]
    #[Middleware(AdminAuthMiddleware::class)]
    #[RequiresPermission(permission: 'catalog.products.view')]
    public function index(): Response
    {
        // Only admin users with 'catalog.products.view' permission
    }
}
```

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

[](#documentation)

Full usage, API reference, and examples: [marko/admin-auth](https://marko.build/docs/packages/admin-auth/)

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance92

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Every ~2 days

Total

16

Last Release

60d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (22 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-admin-auth/health.svg)

```
[![Health](https://phpackages.com/badges/marko-admin-auth/health.svg)](https://phpackages.com/packages/marko-admin-auth)
```

PHPackages © 2026

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