1. Go to this page and download the library: Download fx/hyperf-http-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/ */
fx / hyperf-http-auth example snippets
declare (strict_types=1);
namespace App\Model;
use Fx\HyperfHttpAuth\Contract\Authenticatable;
use Hyperf\DbConnection\Model\Model;
class User extends Model implements Authenticatable
{
use \Fx\HyperfHttpAuth\Authenticatable;
}