cuonic / phpauth
Easy to use PHP Authentication library
dev-master
2018-07-02 23:39 UTC
Requires
- php: >=7.0
- bjeavons/zxcvbn-php: *
- lcobucci/jwt: dev-master
- phpmailer/phpmailer: ^5.2
This package is auto-updated.
Last update: 2024-12-21 05:32:25 UTC
README
About
PHP 7 compatible library for authenticating users using session cookies.
Features
- Login
- Sign up
- Activate account
- Change email address
- Change password
- Delete account
- View active sessions
- Revoke active session
- View security logs
- Logout
Requirements
>= php v7.0
Installation
composer require liamjack/phpauth:dev-master
Usage
require_once('vendor/autoload.php');
$database = new \PHPAuth\Database\MySQL(
$db_host,
$db_user,
$db_pass,
$db_name
);
$phpauth = new \PHPAuth\PHPAuth($database);
See also
- PHPAuth-API A simple REST API layer on top of PHPAuth