PHP code example of phlexus / phlexus-library-auth

1. Go to this page and download the library: Download phlexus/phlexus-library-auth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phlexus / phlexus-library-auth example snippets


use Phlexus\Libraries\Auth\Manager as AuthManager;

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