PHPackages                             zendframework/zend-expressive-csrf - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. zendframework/zend-expressive-csrf

Abandoned → [mezzio/mezzio-csrf](/?search=mezzio%2Fmezzio-csrf)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

zendframework/zend-expressive-csrf
==================================

CSRF token generation and validation for PSR-7 and PSR-15 applications using zend-expressive-session

1.0.1(6y ago)1040.9k↓100%7BSD-3-ClausePHPPHP ^7.1

Since Oct 10Pushed 6y ago11 watchersCompare

[ Source](https://github.com/zendframework/zend-expressive-csrf)[ Packagist](https://packagist.org/packages/zendframework/zend-expressive-csrf)[ RSS](/packages/zendframework-zend-expressive-csrf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

zend-expressive-csrf
====================

[](#zend-expressive-csrf)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [mezzio/mezzio-csrf](https://github.com/mezzio/mezzio-csrf).

[![Build Status](https://camo.githubusercontent.com/2d38e2d60e8cffb41f3b91001b8039a94cbe9d312520343ed692e97ab2d0a7dc/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d637372662e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-expressive-csrf)[![Coverage Status](https://camo.githubusercontent.com/76f664ffdd1cac34b8cff3580d07fc82438c39571a7a9aecaff9f06421294f2c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d637372662f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-expressive-csrf?branch=master)

Provides CSRF token generation and validation for PSR-7 applications, using [zend-expressive-session](https://docs.zendframework.com/zend-expressive-session), and optionally [zend-expressive-flash](https://docs.zendframework.com/zend-expressive-flash).

Installation
------------

[](#installation)

Run the following to install this library:

```
$ composer require zendframework/zend-expressive-csrf
```

Documentation
-------------

[](#documentation)

Documentation is [in the doc tree](docs/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):

```
$ mkdocs build
```

You may also [browse the documentation online](https://docs.zendframework.com/zend-expressive-csrf/).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~155 days

Total

5

Last Release

2511d ago

Major Versions

0.1.1 → 1.0.0alpha12018-02-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (23 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (22 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (5 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (4 commits)")[![froschdesign](https://avatars.githubusercontent.com/u/103362?v=4)](https://github.com/froschdesign "froschdesign (1 commits)")

---

Tags

psr-7securitypsr-15ZendFrameworkzfsessioncsrfexpressivezend-expressive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-expressive-csrf/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-expressive-csrf/health.svg)](https://phpackages.com/packages/zendframework-zend-expressive-csrf)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
