Registry / auth / symfony-security-csrf

symfony-security-csrf

JSON →
library8.1.0phppackagistunverified

Symfony Security Component - CSRF Library provides CSRF protection for Symfony applications.

composer require symfony/security-csrf
INSTALL
IMPORT
SIG · SYMFONY-SECURITY-C
S
symfony-security-csrf
authphpv8.1.0
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.

CsrfTokenManager
use Symfony\Component\Security\Csrf\CsrfTokenManager;

Generate a CSRF token for a form intention.

use Symfony\Component\Security\Csrf\CsrfTokenManager; $csrfTokenManager = new CsrfTokenManager(); $token = $csrfTokenManager->getToken('form_intention')->getValue();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Resources
symfony-security-csrf — pip install symfony-security-csrf · libregistry