PHPackages                             vielhuber/simpleauth - 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. vielhuber/simpleauth

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

vielhuber/simpleauth
====================

Simple php authentication library.

1.9.4(2w ago)3393↑34.4%MITPHPPHP ^8.5

Since Aug 8Pushed 2w ago2 watchersCompare

[ Source](https://github.com/vielhuber/simpleauth)[ Packagist](https://packagist.org/packages/vielhuber/simpleauth)[ RSS](/packages/vielhuber-simpleauth/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (46)Versions (94)Used By (0)

[![build status](https://github.com/vielhuber/simpleauth/actions/workflows/ci.yml/badge.svg)](https://github.com/vielhuber/simpleauth/actions)[![GitHub Tag](https://camo.githubusercontent.com/5f39e3eeb5d20c6237874379fcba53c093ac13080119157d20bbe9cfd602741c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7669656c68756265722f73696d706c6561757468)](https://github.com/vielhuber/simpleauth/tags)[![Code Style](https://camo.githubusercontent.com/1540f8ce219727155ab62506c77b818b720421c22c4cf0b18a5f160942132e2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7073722d2d31322d6666363962342e737667)](https://www.php-fig.org/psr/psr-12/)[![License](https://camo.githubusercontent.com/f6d0247c9b860b4a97200fdeb877e5265d08839baa36ee5c1d3cf47cf9df03cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7669656c68756265722f73696d706c6561757468)](https://github.com/vielhuber/simpleauth/blob/main/LICENSE.md)[![Last Commit](https://camo.githubusercontent.com/76cd538ffd0802253732292f685b14cf145b7002f250ba737fb51eb44ad13251/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7669656c68756265722f73696d706c6561757468)](https://github.com/vielhuber/simpleauth/commits)[![PHP Version Support](https://camo.githubusercontent.com/e06744bf90e56b5c9939572c3267796f2ef08d8e0b38eae3ec02d332ded245a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7669656c68756265722f73696d706c6561757468)](https://packagist.org/packages/vielhuber/simpleauth)[![Packagist Downloads](https://camo.githubusercontent.com/ec58613854eebb04a003f2342a81e1de5dc1032aba4bd5ca4eee43ced1be70ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669656c68756265722f73696d706c6561757468)](https://packagist.org/packages/vielhuber/simpleauth)

🔒 simpleauth 🔒
==============

[](#-simpleauth-)

simpleauth is a simple php based authentication library.

it leverages:

- json web tokens
- bcrypted passwords
- full api

installation
------------

[](#installation)

install once with composer:

```
composer require vielhuber/simpleauth

```

now simply create the following files inside a new folder called `auth` inside your public directory:

#### /auth/index.php

[](#authindexphp)

```
