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)14622MITPHP ^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 1mo ago

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

### 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 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community2

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

2091d 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.8k18.5M1.6k](/packages/cakephp-cakephp)[thecodingmachine/graphqlite

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

5723.1M30](/packages/thecodingmachine-graphqlite)[neos/flow

Flow Application Framework

862.0M450](/packages/neos-flow)[selective/samesite-cookie

Secure your site with SameSite cookies

10144.0k](/packages/selective-samesite-cookie)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)

PHPackages © 2026

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