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 today

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 71% 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

2042d 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

[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3512.0M87](/packages/slim-csrf)[aura/session

Provides session management functionality, including lazy session starting, session segments, next-request-only ("flash") values, and CSRF tools.

2041.2M65](/packages/aura-session)[paragonie/anti-csrf

Paragon Initiative's Anti-CSRF Security Library

304195.9k5](/packages/paragonie-anti-csrf)[owasp/csrf-protector-php

CSRF protector php, a standalone php library for csrf mitigation in web applications. Easy to integrate in any php web app.

222340.9k2](/packages/owasp-csrf-protector-php)[selective/samesite-cookie

Secure your site with SameSite cookies

10143.4k](/packages/selective-samesite-cookie)[kunststube/csrfp

A signed token generator for cross site request forgery protection.

47209.1k1](/packages/kunststube-csrfp)

PHPackages © 2026

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