PHPackages                             raystech/psu-passport - 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. raystech/psu-passport

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

raystech/psu-passport
=====================

PSU Passport Authentication for Laravel

v1.2.3(8y ago)021MITPHPPHP ^7.0

Since Jan 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/raystech/psu-passport)[ Packagist](https://packagist.org/packages/raystech/psu-passport)[ RSS](/packages/raystech-psu-passport/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (8)Used By (0)

PSU Passport Authentication for Laravel 5
-----------------------------------------

[](#psu-passport-authentication-for-laravel-5)

Hey! This package is still a Work in Progress. Files, instructions, and other stuff might change!

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

[](#installation)

Require this package in your composer.json and update composer. This will download the package and PSU Passport.

```
composer require "raystech/psu-passport:^1.2"
```

> If you're using Laravel 5.5 or higher you can skip the two config setups below.

Add the ServiceProvider to the providers array in config/app.php

```
Raystech\PSUPassport\PSUPassportServiceProvider::class,
```

You can use the facade for shorter code; if using Laravel 5.4 or lower, add this to your aliases:

```
'PSUPassport' => Raystech\PSUPassport\Facades\Passport::class,
```

Usage
-----

[](#usage)

Import to controller

```
use PSUPassport;
```

Basic example
-------------

[](#basic-example)

Send credentials to authenticate

```
$credentials = ['username' => '', 'password' => ''];
$user = PSUPassport::authenticate($credentials);
```

Return authentication result

```
$user->auth();
```

Return user details object e.g.

- username
- title
- firstname
- lastname
- gender
- personal id
- email
- affiliation
- campus
- status
- details(array)

```
$user->getUserDetails();
```

Return staff details array

```
$user->getStaffDetails();
```

Return user status e.g. Students, Staffs, Temporary Users

```
$user->status();
```

License
-------

[](#license)

This package is licensed under MIT. You can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source.

Credit
------

[](#credit)

- Facebook: [Piyapan Rodkuen](https://facebook.com/rayspic)
- Twitter: [@raystech\_th](https://twitter.com/raystech_th)
- Email: piyapannr&lt;at&gt;gmail.com

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

6

Last Release

3077d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12198708?v=4)[Piyapan Rodkuen](/maintainers/raystech)[@raystech](https://github.com/raystech)

---

Top Contributors

[![raystech](https://avatars.githubusercontent.com/u/12198708?v=4)](https://github.com/raystech "raystech (18 commits)")

### Embed Badge

![Health badge](/badges/raystech-psu-passport/health.svg)

```
[![Health](https://phpackages.com/badges/raystech-psu-passport/health.svg)](https://phpackages.com/packages/raystech-psu-passport)
```

###  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)
