PHP code example of arabcoders / password

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

    

arabcoders / password example snippets



$pass = new arabcoders\password\Password();
// to hash password
$pass->setPassword('password')->hash();
// to get hashed password.
$hash = $pass->getHash();
// to verify password.
echo ( $pass->verify() ) ? 'welcome' : 'shoo';