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

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

avryhof/auth
============

Authentication class similar to Pear Auth

033PHP

Since Nov 11Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Auth
====

[](#auth)

An Authentication Class similar to Pear Auth (  )

This class was created primarily because when I try to use pear/auth, composer fires a bunch of dependency issues I don't want to resolve. It is also designed to be lighter, and have less requirements than pear/auth, while maintaining somcompatible APIs.

Example
-------

[](#example)

```
  require_once("auth.php");
  or
  require("vendor/autoload.php")

  $auth_options = array(
    "dsn" => "mysqli://".$dsn,
    "table" => "users",
    "usernamecol" => "email",
    "passwordcol" => "password",
    "db_fields" => array("id","name")
  );
  $auth = new Auth("Database", $auth_options, "", false);

  $auth->start();

  if (!$auth->checkAuth()) {
      header("Location:".$baseurl."/login.php");
  }

Also related
=============
- https://github.com/avryhof/database
- http://pear.php.net/package/Auth/docs
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/1bbaf79552976ede049c2bffb031d87621508077a0f73d2cae3683d31e398efe?d=identicon)[avryhof](/maintainers/avryhof)

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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