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

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

julienlinard/auth-php
=====================

Système d'authentification complet pour PHP avec gestion des utilisateurs, rôles, permissions et sécurité

1.3.0(5mo ago)13126MITPHPPHP &gt;=8.0

Since Dec 15Pushed 3mo agoCompare

[ Source](https://github.com/julien-lin/php-auth)[ Packagist](https://packagist.org/packages/julienlinard/auth-php)[ Docs](https://github.com/julien-lin/auth-php)[ RSS](/packages/julienlinard-auth-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Auth PHP - Complete Authentication System
=========================================

[](#auth-php---complete-authentication-system)

[🇫🇷 Read in French](README.fr.md) | [🇬🇧 Read in English](README.md)

💝 Support the project
---------------------

[](#-support-the-project)

If this bundle is useful to you, consider [becoming a sponsor](https://github.com/sponsors/julien-lin) to support the development and maintenance of this open source project.

---

A complete and modern authentication system for PHP 8+ with user management, roles, permissions, customizable guards and integration with JulienLinard packages.

**Current Version**: 1.1.0 | **Tests**: 64 tests, 133 assertions (100% passing) | **Strict Types**: ✅ Enabled

📋 Table of Contents
-------------------

[](#-table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Authentication](#authentication)
- [Roles and Permissions](#roles-and-permissions)
- [Middlewares](#middlewares)
- [User Providers](#user-providers)
- [Guards](#guards)
- [Hashers](#hashers)
- [Integration with Other Packages](#integration-with-other-packages)
- [API Reference](#api-reference)
- [Complete Examples](#complete-examples)
- [Tests](#-tests)

🚀 Installation
--------------

[](#-installation)

```
composer require julienlinard/auth-php
```

**Requirements**:

- PHP 8.0 or higher
- `julienlinard/core-php` (for Session)
- `julienlinard/doctrine-php` (for DatabaseUserProvider)

⚡ Quick Start
-------------

[](#-quick-start)

### Minimal Example

[](#minimal-example)

```
