PHPackages                             mggflow/auth-base - 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. mggflow/auth-base

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

mggflow/auth-base
=================

v2.0.1(3y ago)0411MITPHP

Since Sep 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mggflow/auth-base.php)[ Packagist](https://packagist.org/packages/mggflow/auth-base)[ RSS](/packages/mggflow-auth-base/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (9)Used By (1)

Basic authentication methods
============================

[](#basic-authentication-methods)

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

[](#installation)

`composer require mggflow/auth-base`

About
-----

[](#about)

This package provides following Use Cases:

1. Register User
2. Verify User registration
3. Remove unverified Users
4. Authenticate User by:
    1. Login + Password
    2. Access Token
    3. Cookie
5. Remember User by Cookie

Usage
-----

[](#usage)

To use necessary cases:

1. Implement appropriate interface from MGGFLOW\\AuthBase\\Interfaces
2. Construct an instance of case with instance of implementation
3. Use public methods

Example
-------

[](#example)

```
$code = "received verification code"
// VerificationDataProvider implements MGGFLOW\AuthBase\Interfaces\VerifyRegData
$dataProvider = new VerificationDataProvider();

$verificationCase = new MGGFLOW\AuthBase\VerifyRegistation($dataProvider);
try {
   $verificationCase->setVerificationCode($code);
   $verificationCase->verify();
} catсh (NoVerificationCode | VerificationFailed  $e) {
   throw $e;
}

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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 ~77 days

Recently: every ~134 days

Total

8

Last Release

1214d ago

Major Versions

v0.1.1 → v1.0.02021-09-15

v1.0.3 → v2.0.02023-03-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/90987388?v=4)[MGGFLOW](/maintainers/MGGFLOW)[@mggflow](https://github.com/mggflow)

### Embed Badge

![Health badge](/badges/mggflow-auth-base/health.svg)

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

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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