PHPackages                             makise-co/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. [Framework](/categories/framework)
4. /
5. makise-co/auth

ActiveLibrary[Framework](/categories/framework)

makise-co/auth
==============

Makise-Co Auth component

v2.0.0-beta1(5y ago)09MITPHPPHP ^7.4|^8.0

Since Dec 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/makise-co/auth)[ Packagist](https://packagist.org/packages/makise-co/auth)[ RSS](/packages/makise-co-auth/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Makise-Co Auth
==============

[](#makise-co-auth)

Authentication and Authorization implementation

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

[](#installation)

- Register service provider - `MakiseCo\Auth\AuthServiceProvider`
- Minimal required configuration [config](config)

Example configuration
---------------------

[](#example-configuration)

```
// config/auth.php

return [
    'guards' => [
        // guard name
        'token' => [
            'class' => \MakiseCo\Auth\Guard\BearerTokenGuard::class,
            'provider' => 'database',
            'storageKey' => 'token',
        ]
    ],

    'providers' => [
        // user provider name
        'database' => [
            // your own user provider (should implement UserProviderInterface)
            'class' => \App\Auth\MyUserProvider::class,
        ],
    ]
];
```

Usage
-----

[](#usage)

```
// your routes file

use MakiseCo\Auth\Guard\GuardInterface;
use MakiseCo\Auth\Http\Middleware\AuthorizationMiddleware;
use MakiseCo\Http\Router\RouteCollectorInterface;

/** @var RouteCollectorInterface $routes */

$routes->addGroup(
    '/admin',
    [
        'namespace' => 'App\\Http\\Controller\\Admin\\',
        'middleware' => [
            \MakiseCo\Auth\Http\Middleware\AuthenticationMiddleware::class,
        ],
        'attributes' => [
            // auth guard name
            GuardInterface::class => 'token',
        ],
    ],
    function (RouteCollectorInterface $routes) {
        $routes
            ->get('/users', 'UserController@index')
            // check user's access rights
            ->withMiddleware(AuthorizationMiddleware::class)
            // user must have an "admin" role
            ->withAttribute(AuthorizationMiddleware::ROLES, ['admin']);
    }
);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41348018d9b5a065cd3f4ae969e40f8a50b8e14317723847f609704e790c49e8?d=identicon)[codercms](/maintainers/codercms)

---

Top Contributors

[![codercms](https://avatars.githubusercontent.com/u/4526911?v=4)](https://github.com/codercms "codercms (6 commits)")

---

Tags

httpframeworkmicroauthAuthenticationauthorizationswoolecoroutinemakise

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/makise-co-auth/health.svg)

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

###  Alternatives

[igniphp/framework

Swoole, PSR-7, PSR-15 modular micro anti-framework.

2651.0k1](/packages/igniphp-framework)[luoxiaojun/sw-fw-less

Swoole Http Server without framework

165.3k](/packages/luoxiaojun-sw-fw-less)

PHPackages © 2026

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