PHP code example of elmyrockers / ezauth
1. Go to this page and download the library: Download elmyrockers/ezauth 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/ */
elmyrockers / ezauth example snippets
// bootstrap.php
; // Use EzAuth package
$config = []; // Create an array contain configuration for our authentication
$auth = new EzAuth( $config ); // Instantiate a new `EzAuth` object, passing the configuration array as an argument.
// register.php
oken ) = $auth->register(); // Extract flash message and CSRF token