PHP code example of hugsbrugs / php-security

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

    

hugsbrugs / php-security example snippets



use Hug\Security\Security as Security;

Security::get_payload($url, $uid, $role, $demo = false);

Security::clean_input($input);

Security::sanitize($input);

Security::password($length = 15, $simple = false);

composer 

phpunit --bootstrap vendor/autoload.php tests