Registry / web-framework / slim-csrf

slim-csrf

JSON →
library1.5.1phppackagistunverified

Slim Framework 4 CSRF protection PSR-15 middleware

composer require slim/csrf
INSTALL
IMPORT
SIG · SLIM-CSRF
S
slim-csrf
web-frameworkphpv1.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Guard
use Slim\Csrf\Guard;

Add CSRF protection middleware to Slim app

use Slim\Csrf\Guard; $app->add(new Guard());
Debug
Known issues
breakingRequires Slim Framework 4 and PSR-7 implementation.
fix
Ensure slim/slim ^4.0 and a PSR-7 implementation (e.g., slim/psr7) are installed.
affects: >=1.0.0
Upgrade
Version history
1.5.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
Amazon
1
Resources
slim-csrf — pip install slim-csrf · libregistry