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

ActiveLibrary

liamqma/auth-token
==================

015PHP

Since Dec 19Pushed 12y ago2 watchersCompare

[ Source](https://github.com/liamqma/laravel-AuthToken)[ Packagist](https://packagist.org/packages/liamqma/auth-token)[ RSS](/packages/liamqma-auth-token/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 4 Multipe User Type Auth token
======================================

[](#laravel-4-multipe-user-type-auth-token)

It's a fork of

Getting Started
---------------

[](#getting-started)

### Setup

[](#setup)

Add the package to your `composer.json`

```
"require": {
	...
    "liamqma/auth-token": "dev-master"
}

```

Add the service provider to `app/config/app.php`

```
'Liamqma\AuthToken\AuthTokenServiceProvider',

```

Setup the optional aliases in `app/config/app.php`

```
'AuthToken' => 'Liamqma\Support\Facades\AuthToken',

```

Currently the auth tokens are stored in the database, you will need to run the migrations:

```
php artisan migrate --package=liamqma/auth-token

```

### Usage

[](#usage)

Generate Token

```
$user_id = 1;
$user_type = 'Accessor';
AuthToken::createToken($user_id,$user_type)

```

Validate Token

```
$result = AuthToken::validateToken($token);
if($result===TURE)
    ...

```

Get User Id after validation

```
$user_id = AuthToken::getUserId()

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d88124a49be107da2ae86e319841e66aa205230ec23cdf40edb52681ba47943?d=identicon)[liamqma](/maintainers/liamqma)

---

Top Contributors

[![liamqma](https://avatars.githubusercontent.com/u/4413219?v=4)](https://github.com/liamqma "liamqma (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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