PHPackages                             microphork/package-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. microphork/package-auth

AbandonedArchivedMicrophork-package[Authentication &amp; Authorization](/categories/authentication)

microphork/package-auth
=======================

An authentication package for the microphork framework

02821PHP

Since Mar 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/phork/microphork-package-auth)[ Packagist](https://packagist.org/packages/microphork/package-auth)[ RSS](/packages/microphork-package-auth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Introduction
------------

[](#introduction)

This is an authentication package for the microphork framework. The authentication class is a dispatcher. Currently the only available handler spoofs the user data.

To extend this package create a `\Phork\App\Auth` class in the `app/classes` folder and an `app/config/auth.php` file to define the active handler.

Usage
-----

[](#usage)

```
//load and initialize a new auth package
$class = \Phork::instance()->initPackage('Auth');
$auth = new $class();

//get the loaded config
$config = \Phork::config()->get('auth');

//initialize the auth handler
if ($config->handlers && $handlers = $config->handlers->export()) {
    $auth->init($handlers);
}

//show the user data
\Phork::output()
    ->addContent('authenticated: '.$auth->isAuthenticated().'')
    ->addContent('user id: '.$auth->getUserId().'')
    ->addContent('user name: '.$auth->getUserName().'')
;

```

Credits
-------

[](#credits)

Built by [Elenor](http://elenor.net) at [Phork Labs](http://phork.org).

License
-------

[](#license)

Licensed under The MIT License

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ff9fea307bad4262b9c3f9e518303cfeb600841b8bd0adcf8a64a64889e99f3?d=identicon)[elenor](/maintainers/elenor)

![](https://www.gravatar.com/avatar/c168c6d3b6cc102adf156152de7194f9fa0a8fc161b6fdc8440e4aeaf72a1834?d=identicon)[phork](/maintainers/phork)

---

Top Contributors

[![e1en0r](https://avatars.githubusercontent.com/u/196027?v=4)](https://github.com/e1en0r "e1en0r (25 commits)")

### Embed Badge

![Health badge](/badges/microphork-package-auth/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

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

PHPackages © 2026

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