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

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

pdgi-online/auth
================

PDGI Authorization Code Grant Client Facade

0.0.2(6mo ago)038MITPHPPHP ^8.2

Since Aug 29Pushed 6mo agoCompare

[ Source](https://github.com/pdgi-online/auth)[ Packagist](https://packagist.org/packages/pdgi-online/auth)[ RSS](/packages/pdgi-online-auth/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel PDGI Auth Client
========================

[](#laravel-pdgi-auth-client)

A Laravel package providing a facade for OAuth2 Authorization Code Grant flow for PDGI App.

Features
--------

[](#features)

- Secure OAuth2 authorization code flow
- Automatic user creation and login
- Token management and refresh
- Configurable user model
- Ready-to-use authentication routes

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

[](#installation)

1. Install via composer:

```
composer require pdgi-online/auth
```

2. Migrate database for PDGI Auth

```
php artisan migrate
```

3. Add these to your .env file:

```
PDGI_CLIENT_ID=your-client-id
PDGI_CLIENT_SECRET=your-client-secret

```

Usage
-----

[](#usage)

Full Authentication Flow
------------------------

[](#full-authentication-flow)

add login link

```
Login
```

1. The package will:
    - Handle the OAuth flow with PDGI auth
    - Fetch user information from the PDGI server
    - Create a local user if one doesn't exist
    - Log the user in automatically
    - Redirect to your dashboard

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance68

Regular maintenance activity

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~121 days

Total

2

Last Release

188d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16108665?v=4)[Afif Muhammad](/maintainers/AfifMuhammad)[@AfifMuhammad](https://github.com/AfifMuhammad)

---

Top Contributors

[![AfifMuhammad](https://avatars.githubusercontent.com/u/16108665?v=4)](https://github.com/AfifMuhammad "AfifMuhammad (8 commits)")[![afifmhmd](https://avatars.githubusercontent.com/u/170902165?v=4)](https://github.com/afifmhmd "afifmhmd (1 commits)")

### Embed Badge

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

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

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M992](/packages/statamic-cms)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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