PHPackages                             owasp/csrf-protector-php - 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. owasp/csrf-protector-php

ActiveLibrary[Security](/categories/security)

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.

v1.0.2(5y ago)222348.3k—4.8%[4 PRs](https://github.com/mebjas/CSRF-Protector-PHP/pulls)2Apache-2.0

Since Jul 25Compare

[ Source](https://github.com/mebjas/CSRF-Protector-PHP)[ Packagist](https://packagist.org/packages/owasp/csrf-protector-php)[ Docs](https://github.com/mebjas/CSRF-Protector-PHP)[ RSS](/packages/owasp-csrf-protector-php/feed)WikiDiscussions Synced 1mo ago

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

### README not available

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% 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 ~532 days

Total

5

Last Release

2186d ago

Major Versions

v0.2.1 → v1.0.02017-10-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0c30b183d2eb203f6b71e650e6df326d2e32104190ce2cbd2cacfa8af01c219?d=identicon)[mebjas](/maintainers/mebjas)

![](https://www.gravatar.com/avatar/32ba1b78e47e858f3e787195fb0badf0c59523b5b5859d8b9625efa8edb14d0e?d=identicon)[OWASP](/maintainers/OWASP)

---

Top Contributors

[![mebjas](https://avatars.githubusercontent.com/u/3007365?v=4)](https://github.com/mebjas "mebjas (221 commits)")[![oittaa](https://avatars.githubusercontent.com/u/8972248?v=4)](https://github.com/oittaa "oittaa (6 commits)")[![mberkowski](https://avatars.githubusercontent.com/u/2617064?v=4)](https://github.com/mberkowski "mberkowski (4 commits)")[![abhinavdahiya](https://avatars.githubusercontent.com/u/3481311?v=4)](https://github.com/abhinavdahiya "abhinavdahiya (2 commits)")[![bstoney](https://avatars.githubusercontent.com/u/1164857?v=4)](https://github.com/bstoney "bstoney (2 commits)")[![polishdeveloper](https://avatars.githubusercontent.com/u/3909689?v=4)](https://github.com/polishdeveloper "polishdeveloper (2 commits)")[![DavidFricker](https://avatars.githubusercontent.com/u/6656039?v=4)](https://github.com/DavidFricker "DavidFricker (1 commits)")[![msalestream](https://avatars.githubusercontent.com/u/11047662?v=4)](https://github.com/msalestream "msalestream (1 commits)")[![nikivanstein](https://avatars.githubusercontent.com/u/3687311?v=4)](https://github.com/nikivanstein "nikivanstein (1 commits)")[![aduh95](https://avatars.githubusercontent.com/u/14309773?v=4)](https://github.com/aduh95 "aduh95 (1 commits)")[![stephenlawrence](https://avatars.githubusercontent.com/u/1699704?v=4)](https://github.com/stephenlawrence "stephenlawrence (1 commits)")[![SautdeChat](https://avatars.githubusercontent.com/u/10870108?v=4)](https://github.com/SautdeChat "SautdeChat (1 commits)")[![johnmaguire](https://avatars.githubusercontent.com/u/440033?v=4)](https://github.com/johnmaguire "johnmaguire (1 commits)")

---

Tags

securitycsrfowasp

### Embed Badge

![Health badge](/badges/owasp-csrf-protector-php/health.svg)

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

###  Alternatives

[paragonie/anti-csrf

Paragon Initiative's Anti-CSRF Security Library

307200.6k5](/packages/paragonie-anti-csrf)[riimu/kit-csrf

Secure and simple CSRF library protected against timing and BREACH attacks

6526.1k](/packages/riimu-kit-csrf)[ayesh/stateless-csrf

Secret-key based state-less CSRF token generator and validator for PHP 8. State-less means you do not have to store the CSRF token in session or database.

3223.3k](/packages/ayesh-stateless-csrf)[dneustadt/csrf-cookie-bundle

CSRF protection cookie for use with XHR

1379.2k1](/packages/dneustadt-csrf-cookie-bundle)

PHPackages © 2026

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