vperyod / simple-lock
Simple low security access restriction/password protection PSR7 middleware
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vperyod/simple-lock
Requires
- php: >=5.6.0
- psr/http-message: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-29 01:56:18 UTC
README
#vperyod.simple-lock Simple low security access restriction/password protection PSR7 middleware
Installation
composer require vperyod/simple-lock
Usage
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 }