PHPackages                             krubio/perfect-authentication - 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. krubio/perfect-authentication

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

krubio/perfect-authentication
=============================

Standalone authentication library with password hashing and verification

v0.1.0(3mo ago)40MITPHPPHP ^8.3CI passing

Since Jan 24Pushed 3mo agoCompare

[ Source](https://github.com/benanamen/perfect-authentication)[ Packagist](https://packagist.org/packages/krubio/perfect-authentication)[ RSS](/packages/krubio-perfect-authentication/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![Code Quality](https://github.com/benanamen/perfect-authentication/actions/workflows/code-quality.yml/badge.svg)](https://github.com/benanamen/perfect-authentication/actions/workflows/code-quality.yml)[![Security Scan](https://github.com/benanamen/perfect-authentication/actions/workflows/security.yml/badge.svg)](https://github.com/benanamen/perfect-authentication/actions/workflows/security.yml)[![Tests](https://github.com/benanamen/perfect-authentication/actions/workflows/test.yml/badge.svg)](https://github.com/benanamen/perfect-authentication/actions/workflows/test.yml)

Perfect Authentication
======================

[](#perfect-authentication)

A lightweight, standalone PHP authentication library focused on secure password hashing and verification. Zero dependencies, 100% test coverage, and PHP 8.1+ compatible.

Features
--------

[](#features)

- 🔐 **Secure Password Hashing** using PHP's built-in `password_hash()` functions
- ✅ **100% Test Coverage** with PHPUnit 12
- 📊 **PHPStan Level 10** - Maximum static analysis quality
- 🚀 **Zero Dependencies** - Pure PHP implementation
- 🎯 **PHP 8.3+** with strict types and modern features
- 🔧 **Flexible Algorithm Support** (BCRYPT, ARGON2I, ARGON2ID)
- 🛡️ **Exception-Based Error Handling** for robust security
- 📦 **PSR-4 Compliant**

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

[](#installation)

```
  composer require krubio/perfect-authentication
```

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- PHP password hashing functions (enabled by default)

Quick Start
-----------

[](#quick-start)

### Basic Password Operations

[](#basic-password-operations)

```
