PHPackages                             modulework/csrfwork - 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. modulework/csrfwork

ActiveModulework-module

modulework/csrfwork
===================

A simple way of protecting forms regarding to CSRF

v1.0(12y ago)226Apache 2.0PHPPHP &gt;=5.3.0

Since Jun 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/MODULEWork/CSRFWork)[ Packagist](https://packagist.org/packages/modulework/csrfwork)[ RSS](/packages/modulework-csrfwork/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

CSRFWork
========

[](#csrfwork)

A simple way of protecting forms regarding to CSRF

Installation:
-------------

[](#installation)

- Place the csrf.php file into your application folder
- Include it `include_once 'csrf.php'; `
- and initate it: `CSRF::init();`

HowTo
-----

[](#howto)

There are 2 methods available for you to interact with your cache.

- `token()`
- `check($token)`

TOKEN
-----

[](#token)

```
token()

```

This method will return the token for the current and next request.

**Example usage:**

```
