PHPackages                             odan/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. [Security](/categories/security)
4. /
5. odan/csrf

AbandonedLibrary[Security](/categories/security)

odan/csrf
=========

A CSRF protection middleware

5.0.0(5y ago)146222MITPHP ^7.1

Since Dec 10Compare

[ Source](https://github.com/selective-php/csrf)[ Packagist](https://packagist.org/packages/odan/csrf)[ Docs](https://github.com/selective/csrf)[ RSS](/packages/odan-csrf/feed)WikiDiscussions Synced 3w ago

READMEChangelogDependencies (8)Versions (13)Used By (2)

### README not available

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

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~123 days

Total

11

Last Release

2136d ago

Major Versions

0.2.0 → 1.0.02018-02-11

1.1.0 → 2.0.02019-03-08

2.1.0 → 3.0.02019-04-13

3.1.0 → 4.0.02020-03-08

4.0.0 → 5.0.02020-08-17

PHP version history (3 changes)0.1.0PHP ^7.0

2.0.0PHP ^7.2

3.1.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/89d408d7f6ed65cdbeba70a2da2d0a8a1135fc37ebc07c44989f509221cc91bd?d=identicon)[odan](/maintainers/odan)

---

Tags

csrfanti forgery

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.7k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5733.2M40](/packages/thecodingmachine-graphqlite)[typo3/cms-core

TYPO3 CMS Core

3312.9M4.8k](/packages/typo3-cms-core)

PHPackages © 2026

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