PHPackages                             xudid/csrfmiddleware - 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. xudid/csrfmiddleware

ActiveLibrary[Security](/categories/security)

xudid/csrfmiddleware
====================

A CSRF Middleware

0.0.0.2(3y ago)09MITPHP

Since Apr 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/xudid/csrfmiddleware)[ Packagist](https://packagist.org/packages/xudid/csrfmiddleware)[ RSS](/packages/xudid-csrfmiddleware/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

csrfmiddleware
==============

[](#csrfmiddleware)

A CSRF Middleware

[![Unit Tests](https://github.com/xudid/csrfmiddleware/actions/workflows/php.yml/badge.svg)](https://github.com/xudid/csrfmiddleware/actions/workflows/php.yml/badge.svg)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

2

Last Release

1115d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f769aa36c5d6873e61ffe6edd7653d4a1e0b925d6dc1ed584941da271d7c563?d=identicon)[xudid](/maintainers/xudid)

---

Top Contributors

[![xudid](https://avatars.githubusercontent.com/u/5628783?v=4)](https://github.com/xudid "xudid (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xudid-csrfmiddleware/health.svg)

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

###  Alternatives

[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[selective/samesite-cookie

Secure your site with SameSite cookies

10144.0k](/packages/selective-samesite-cookie)[acmephp/ssl

PHP wrapper around OpenSSL extension providing SSL encoding, decoding, parsing and signing features

141.2M4](/packages/acmephp-ssl)

PHPackages © 2026

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