PHPackages                             chillrend/pnj-socialite-provider - 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. chillrend/pnj-socialite-provider

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

chillrend/pnj-socialite-provider
================================

A Socialite Provider for PNJ SSO

v1.1(4y ago)0209MITPHPPHP ^7.2|^8.0

Since Nov 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Chillrend/PNJSocialiteProvider)[ Packagist](https://packagist.org/packages/chillrend/pnj-socialite-provider)[ RSS](/packages/chillrend-pnj-socialite-provider/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

PNJ SSO Provider
================

[](#pnj-sso-provider)

```
composer require chillrend/pnj-socialite-provider
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'pnj' => [
  'client_id' => env('CLIENT_ID'),
  'client_secret' => env('CLIENT_SECRET'),
  'redirect' => env('REDIRECT_URI')
],
```

### Add provider event listener

[](#add-provider-event-listener)

Configure the package's listener to listen for `SocialiteWasCalled` events.

Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\\PNJ\\PNJExtendSocialite@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('pnj')->redirect();
```

### Returned User fields

[](#returned-user-fields)

- `sub` the system internal ID of a user
- `ident` the user's internal identification number (can be a NIP (Nomor Induk Pegawai) or NIM (Nomor Induk Mahasiswa) depends on the access level of the user)
- `name` the user's full name
- `email` the user's email address
- `address` the user's home address
- `date_of_birth` the user's date of birth
- `department_and_level` the user's access level and the user's department (in array)
    - `access_level` the user's access level in a department
    - `access_level_name` the 'human readable' representation of the access level
    - `department` the user's department
    - `department_short_name` the department short abbreviation or name

**JSON Representative of the user fields**

```
{
  "address": "187 Justen Point Suite 090\nWest Shania, TX 99746-9546",
  "date_of_birth": "1979-03-14",
  "department_and_level": [
    {
      "access_level": 99,
      "access_level_name": "Admin",
      "department": "Teknik Informatika dan Komputer",
      "department_short_name": "TIK"
    }
  ],
  "email": "wilkinson.marquise@example.com",
  "iat": 1622287930,
  "ident": 80779,
  "name": "Prof. Ivory Ferry",
  "sub": "4"
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~123 days

Total

4

Last Release

1667d ago

Major Versions

v0.5 → v1.02021-06-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/504abc460a58d8b48f29b500fcfc88cdc08646fa80ab993af6ac455cab04dafc?d=identicon)[Chillrend](/maintainers/Chillrend)

---

Top Contributors

[![Chillrend](https://avatars.githubusercontent.com/u/38966867?v=4)](https://github.com/Chillrend "Chillrend (7 commits)")

### Embed Badge

![Health badge](/badges/chillrend-pnj-socialite-provider/health.svg)

```
[![Health](https://phpackages.com/badges/chillrend-pnj-socialite-provider/health.svg)](https://phpackages.com/packages/chillrend-pnj-socialite-provider)
```

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

599.1M13](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

346.9M19](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

401.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

566.8M24](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M8](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.3M20](/packages/socialiteproviders-discord)

PHPackages © 2026

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