Skip to content

Simple low security access restriction/password protection PSR7 Middleware

Notifications You must be signed in to change notification settings

vperyod/vperyod.simple-lock

Repository files navigation

#vperyod.simple-lock Simple low security access restriction/password protection PSR7 middleware

Latest version Build Status Coverage Status Quality Score

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
}

About

Simple low security access restriction/password protection PSR7 Middleware

Resources

Stars

Watchers

Forks

Packages

No packages published