cuonic/phpauth

Easy to use PHP Authentication library

dev-master 2018-07-02 23:39 UTC

This package is auto-updated.

Last update: 2024-03-21 04:00:41 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