# delight-im/PHP-Auth

Authentication for PHP. Simple, lightweight and secure.

Repository: https://github.com/delight-im/PHP-Auth
Canonical: https://ross.abutalabs.com/products/php-auth
Language: PHP
License: MIT
License Family: permissive
Topics: php, auth, authentication, authorization, security, login, registration
Last push: 2025-06-04T17:48:29+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 25, release rhythm 35, longevity 100
- inputs: {"age_days": 3970, "days_push": 455, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1244, forks 237 (observed 2026-08-28T04:04:06.900092+00:00)

## What it is
A lightweight, secure authentication library for PHP that handles registration, login, email verification, password resets, and session management. It is framework-agnostic and database-agnostic, working with MySQL, MariaDB, PostgreSQL, and SQLite via PDO.

## Use cases
- add user login and registration to a PHP website
- implement secure password authentication without building it from scratch
- handle password reset and email verification flows in PHP
- manage user sessions and remember-me login persistence
- add authentication to a framework-agnostic PHP project
- store user credentials securely in MySQL, PostgreSQL, or SQLite

## When to choose
- you need drop-in authentication for a plain PHP or framework-agnostic project
- you want a peer-reviewed, security-focused alternative to hand-rolled auth
- your stack is PHP with a SQL database via PDO

## When to avoid
- your framework already provides a mature built-in auth system
- you need OAuth, SSO, or social login out of the box
- you are not using PHP

## Facets
- artifact type: library
- maturity: stable
- function: auth, authorization, security
- domain: security, web-development, backend
- platform: php, self-hosted
- tags: authentication, login, registration, password-reset, session-management, framework-agnostic, database-agnostic, web-server

## Member repositories
- delight-im/PHP-Auth (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.900092+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:14.328855+00:00, confidence not recorded.
  - readme: https://github.com/delight-im/PHP-Auth (fetched 2026-08-28T04:04:06.900092+00:00, sha 2156b7684b2a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
