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

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

pckg/auth
=========

Provides basic functionality for authentication and authorization users in database, on Twitter, Facebook and with OAuth2 standard

25.1kPHPCI failing

Since Oct 1Pushed 1y ago2 watchersCompare

[ Source](https://github.com/pckg/auth)[ Packagist](https://packagist.org/packages/pckg/auth)[ RSS](/packages/pckg-auth/feed)WikiDiscussions next-8.0 Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

auth
====

[](#auth)

[![Codacy Badge](https://camo.githubusercontent.com/d2207948db2627edbc38bc124d5809b214690697ecf53b65d047e89c3085aafb/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3863386232376435386161613430356539663135656539336632373132643534)](https://www.codacy.com/app/schtr4jh/auth?utm_source=github.com&utm_medium=referral&utm_content=pckg/auth&utm_campaign=badger)

[![Build status](https://github.com/pckg/auth/workflows/Pckg%20Auth%20CI/badge.svg)](https://github.com/pckg/auth/workflows/Pckg%20Auth%20CI/badge.svg)

Install
=======

[](#install)

Add provider `\Pckg\Auth\Provider\Auth::class` to your App provider.

Add migration `\Pckg\Auth\Migration\CreateAuthTables::class` to your `migrations.php` config.

Migrate `$ php console yourApp migrator:install --repository=default --clean`

Create godfather `$ php console auth auth:create-godfather your@email.com`

Add provider to your config `'default' => [ 'type' => \Pckg\Auth\Service\Provider\Database::class, 'entity' => \OpenCode\OAuth2\Entity\Users::class, ],`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 99.7% 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/b94b3bcec679374372be12374d132c7852fcabf1cc6339763d81a63e384b74f3?d=identicon)[schtr4jh](/maintainers/schtr4jh)

---

Top Contributors

[![schtr4jh](https://avatars.githubusercontent.com/u/385801?v=4)](https://github.com/schtr4jh "schtr4jh (314 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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