falcon758/phlexus-library-auth

Phlexus Auth Library

2.1.0 2022-12-07 15:44 UTC

README

Authentication library for Phlexus CMS. With support of several drivers/adapters to use for different situations.

Inspired by SidRoberts/phalcon-auth

Example of usage

use Phlexus\Libraries\Auth\Manager as AuthManager;

$manager = new AuthManager('plain', ['auth_file_path' => 'passwords.txt']);
$manager->login(['user', 'password']);

Currently supported drivers

  • model - Phalcon Model
  • plain - Plain text file