PHPackages                             devinci-it/shadow-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. devinci-it/shadow-auth

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

devinci-it/shadow-auth
======================

Lightweight file-based PHP authentication library with optional TOTP.

v1.0.4(2mo ago)05MITPHPPHP &gt;=8.1

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/devinci-it/shadow-auth)[ Packagist](https://packagist.org/packages/devinci-it/shadow-auth)[ RSS](/packages/devinci-it-shadow-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Devinci Shadow Auth
===================

[](#devinci-shadow-auth)

A lightweight, file-based PHP authentication library with optional TOTP 2FA, CSRF protection, and simple processor/form helpers for classic server-rendered apps.

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

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Architecture](#architecture)
- [Configuration](#configuration)
- [Auth Flows](#auth-flows)
- [Facade API](#facade-api)
- [Publishing Demo, Endpoints, and Wiki](#publishing-demo-endpoints-and-wiki)
- [Serve Demo Locally](#serve-demo-locally)
- [Class Wiki](#class-wiki)
- [Security Notes](#security-notes)
- [Release and Tagging](#release-and-tagging)
- [License](#license)

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

[](#requirements)

- PHP `>=8.1`
- Composer (for package install and autoload)

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

[](#installation)

Install through Composer:

```
composer require devinci-it/shadow-auth
```

If you are developing this package locally in another app, use a Composer path repository:

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../devinci-it-shadow-auth",
      "options": {
        "symlink": true
      }
    }
  ],
  "require": {
    "devinci-it/shadow-auth": "*"
  }
}
```

Then update dependencies:

```
composer update devinci-it/shadow-auth
```

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

[](#quick-start)

### 1. Bootstrap

[](#1-bootstrap)

```
