PHPackages                             mezzio/mezzio-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. mezzio/mezzio-csrf

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mezzio/mezzio-csrf
==================

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

1.11.0(7mo ago)8239.0k↓11.6%[1 PRs](https://github.com/mezzio/mezzio-csrf/pulls)4BSD-3-ClausePHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

Since Dec 31Compare

[ Source](https://github.com/mezzio/mezzio-csrf)[ Packagist](https://packagist.org/packages/mezzio/mezzio-csrf)[ Docs](https://mezzio.dev)[ Fund](https://funding.communitybridge.org/projects/laminas-project)[ RSS](/packages/mezzio-mezzio-csrf/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (7)Versions (33)Used By (4)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/mezzio/mezzio-csrf).

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance64

Regular maintenance activity

Popularity39

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

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 ~76 days

Recently: every ~130 days

Total

31

Last Release

57d ago

Major Versions

0.1.0 → 1.0.02019-12-31

PHP version history (9 changes)0.1.1PHP ^7.1

1.1.x-devPHP ^7.3 || ~8.0.0

1.2.x-devPHP ^7.3 || ~8.0.0 || ~8.1.0

1.4.0PHP ^7.4 || ~8.0.0 || ~8.1.0

1.7.x-devPHP ~8.0.0 || ~8.1.0 || ~8.2.0

1.8.0PHP ~8.1.0 || ~8.2.0

1.9.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

1.10.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

1.11.x-devPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25943?v=4)[Matthew Weier O'Phinney](/maintainers/weierophinney)[@weierophinney](https://github.com/weierophinney)

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

---

Tags

psr-7laminassecuritypsr-15mezziosessioncsrf

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mezzio-mezzio-csrf/health.svg)

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

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[laminas/laminas-httphandlerrunner

Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.

7217.9M205](/packages/laminas-laminas-httphandlerrunner)[mezzio/mezzio-session

Session container and middleware for PSR-7 applications

24982.3k16](/packages/mezzio-mezzio-session)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-swoole

Swoole support for Mezzio

92238.9k3](/packages/mezzio-mezzio-swoole)

PHPackages © 2026

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