katsew/checkpoint-php

Create whitelist and blacklist for the url route.

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/katsew/checkpoint-php

v0.1.0 2016-12-14 06:13 UTC

This package is not auto-updated.

Last update: 2025-10-12 02:22:27 UTC


README

This is a module that create both whitelist and blacklist for url.

Usage

$checkpoint = new Checkpoint();
$checkpoint->setSafeBorders(['/path/which/always/pass/through']);
$checkpoint->setCheckpoints(['/path/which/not/pass/through', '/blacklisted']);

$can_pass_through = $checkpoint->canPassThrough('/hoge'); // will return true.
$can_pass_through = $checkpoint->canPassThrough('/blacklisted'); // will return false!