jblond/nocsrf

This package is abandoned and no longer maintained. No replacement package was suggested.

NoCSRF is a simple anti-CSRF token generation/checking class written in PHP.

Maintainers

Details

github.com/JBlond/NoCSRF

Source

Issues

Installs: 206

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 55

Open Issues: 0

pkg:composer/jblond/nocsrf

v1.7 2020-12-01 13:28 UTC

This package is auto-updated.

Last update: 2025-05-26 12:24:39 UTC


README

Code Climate SensioLabsInsight

  • Author: Thibaut Despoulain
  • Author: Mario
  • Version: Latest Version
  • Licensed under the MIT license

Usage

For usage see the example/exmaple.php

Public functions

  • check
  • enableOriginCheck
  • generate
<?php
$csfr = new jblond\Nocsrf;
$csfr->check('csrf_token', $_POST, $throwException = false, $time_span = null, $multiple = false);
$csfr->enableOriginCheck(); // optional
$csfr->generate( 'csrf_token' );