前越 / simple-lock
简单低安全级别访问限制/密码保护 PSR7 中间件
0.1.0
2016-07-29 05:23 UTC
Requires
- php: >=5.6.0
- psr/http-message: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-08-29 04:03:35 UTC
README
#vperyod.simple-lock 简单 低安全 访问限制/密码保护 PSR7 中间件
安装
composer require vperyod/simple-lock
使用
use Vperyod\SimpleLock\LockHandler; use Vperyod\SimpleLock\Verify\Password; if ($_ENV['LOCK']) { $password = new Password($_ENV['LOCK_PW']); // Password Verifier $lockHandler = new LockHandler($password); // Lock Handler Middleware $stack->middleware($lockHandler); // Add middleware early }