PHPackages                             jblond/nocsrf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. jblond/nocsrf

AbandonedArchivedLibrary[Security](/categories/security)

jblond/nocsrf
=============

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

v1.7(5y ago)12091MITPHPPHP &gt;= 7.1

Since Mar 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JBlond/NoCSRF)[ Packagist](https://packagist.org/packages/jblond/nocsrf)[ RSS](/packages/jblond-nocsrf/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (1)Versions (6)Used By (0)

NoCSRF, a simple PHP7 token class to prevent CSRF attacks.
==========================================================

[](#nocsrf-a-simple-php7-token-class-to-prevent-csrf-attacks)

[![Code Climate](https://camo.githubusercontent.com/d909fa630269b84f600a7dece90e76099f046719959cfb17f1ceb5e9f865b5d0/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a426c6f6e642f4e6f435352462f6261646765732f6770612e737667)](https://codeclimate.com/github/JBlond/NoCSRF) [![SensioLabsInsight](https://camo.githubusercontent.com/f356d9f67a683be161d87d0ed2cf203f63bbe71db1f5243665aca4dd7539172f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39643465393135372d353639632d343663332d623338632d3061336430306139323366662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9d4e9157-569c-46c3-b38c-0a3d00a923ff)

- Author: Thibaut Despoulain
- Author: Mario
- Version: [![Latest Version](https://camo.githubusercontent.com/01ab421d4e4093c9474249e75a0524c4c36c7c602cdaa1fee90519cc1934d968/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4a426c6f6e642f4e6f435352462e7376673f7374796c653d666c61742d737175617265266c6162656c3d52656c65617365)](https://github.com/JBlond/NoCSRF/releases)
- Licensed under the [MIT license](LICENSE.md)

Usage
-----

[](#usage)

For usage see the example/exmaple.php

Public functions
----------------

[](#public-functions)

- check
- enableOriginCheck
- generate

```
