1. Go to this page and download the library: Download qing7777/hash 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/ */
qing7777 / hash example snippets
use Qing7777\Hash\Hash;
$str = '12345';
$encryptedStr = Hash::make($str);
use Hyperf\Utils\ApplicationContext;
use Qing7777\Hash\HashInterface;
$str = '12345';
$HashInterface = ApplicationContext::getContainer()->get(HashInterface::class);
$HashInterface->make($str);