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

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

gglnx/auth
==========

Simple auth class for PHP 5.3+

1.0.3(13y ago)12.3kMITPHPPHP &gt;=5.3.0

Since Aug 11Pushed 13y ago1 watchersCompare

[ Source](https://github.com/gglnx/auth)[ Packagist](https://packagist.org/packages/gglnx/auth)[ Docs](http://github.com/gglnx/auth)[ RSS](/packages/gglnx-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Auth
====

[](#auth)

Simple auth class for PHP 5.3+ based on cookies. Also included a password hash class based on phpass () 0.3.

Using Auth
----------

[](#using-auth)

### Checking if a user is currently logged in

[](#checking-if-a-user-is-currently-logged-in)

If the current session is valid you get the User model object as return value.

```
$user = Auth\Session::check(function($user, $md5) {
	$user = User::findOne()->is('username', $user)->select();
	return array('username' => $user->username, 'password' => $user->password, 'object' => $user);
});
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

4

Last Release

5025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2f103c91482464d2c73d47a07b139eca908d6d86baf634e052c28ce483f2955?d=identicon)[gglnx](/maintainers/gglnx)

---

Top Contributors

[![gglnx](https://avatars.githubusercontent.com/u/23519?v=4)](https://github.com/gglnx "gglnx (10 commits)")

---

Tags

auth

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)

PHPackages © 2026

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