PHP code example of xakki / phpwall

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

    

xakki / phpwall example snippets


$phpWallConf = [
    'secretRequest' => 'CHANGE_ME',
    'secretRequestRemove' => 'CHANGE_ME',
    'bunTimeout' => 86400,
    'check_post' => false,
    'check_ua' => false,
    'check_url_keyword_exclude' => ['/admin/index.php', '/user/admin'],
    'dbPdo' => [
        'password' => 'passwor to databse'
    ],
     // get key on https://www.google.com/recaptcha/admin/
     'googleCaptchaSiteKey' => 'CHANGE_ME',
     'googleCaptchaSecretKey' => 'CHANGE_ME',

];
new \Xakki\PhpWall\PhpWall($phpWallConf);