PHP code example of fobiaweb / auth

1. Go to this page and download the library: Download fobiaweb/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/ */

    

fobiaweb / auth example snippets


return array(
    1 => array(
        'list' => array(
            'ACCESS_1',
            'ACCESS_2'
        ),
        'value' => array(
            'ACCESS_3' => 11
        )
    ),
    2 => array(
        'list' => array(
            'ACCESS_1',
            'ACCESS_2'
        ),
        'value' => array(
            'ACCESS_3' => 11
        )
    )
);

$n = $i = 1;
while (strlen((string) $i) <= 9) {
    echo sprintf("| %-4d | %-9d | %b | \n", $n, $i, $i);
    $i = $i * 2;
    $n = $n + 1;
}