PHPackages                             polymorphine/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. polymorphine/csrf

ActiveLibrary[Security](/categories/security)

polymorphine/csrf
=================

CSRF protection service handled by PSR-15 middleware

0.1.4(1y ago)04MITPHPPHP ^7.4 || ^8.0

Since Aug 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/polymorphine/csrf)[ Packagist](https://packagist.org/packages/polymorphine/csrf)[ RSS](/packages/polymorphine-csrf/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Polymorphine/Csrf
=================

[](#polymorphinecsrf)

[![Latest stable release](https://camo.githubusercontent.com/be57631eae5f5dc8230b1ec1afa1700f1134bf14bddb9540d592d952f25053cc/68747470733a2f2f706f7365722e707567782e6f72672f706f6c796d6f727068696e652f637372662f76657273696f6e)](https://packagist.org/packages/polymorphine/csrf)[![Build status](https://github.com/polymorphine/csrf/workflows/build/badge.svg)](https://github.com/polymorphine/csrf/actions)[![Coverage status](https://camo.githubusercontent.com/fab60de00c231bb3ead2048a52141694ac8f1703011a8d0daa124caf0e54e8f2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f706f6c796d6f727068696e652f637372662f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/polymorphine/csrf?branch=develop)[![PHP version](https://camo.githubusercontent.com/1ee659d5f4e5c7fabd0a67cbcf28e4bc88a3cc5a94252b68de6ea10762faeadf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706f6c796d6f727068696e652f637372662e737667)](https://packagist.org/packages/polymorphine/csrf)[![LICENSE](https://camo.githubusercontent.com/88c746b3d203de880f7add0e3bc2d0356a3ea3ff07c365064f8de2e118111b2d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706f6c796d6f727068696e652f637372662e7376673f636f6c6f723d626c7565)](LICENSE)

### CSRF protection service handled by PSR-15 middleware

[](#csrf-protection-service-handled-by-psr-15-middleware)

### Installation with [Composer](https://getcomposer.org/)

[](#installation-with-composer)

```
composer require polymorphine/csrf
```

...

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

5

Last Release

470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b83b30083b2ca0951558f0516ded598877c690f2be60cf949d9be3fdf0389ca?d=identicon)[shudd3r](/maintainers/shudd3r)

---

Top Contributors

[![shudd3r](https://avatars.githubusercontent.com/u/9908030?v=4)](https://github.com/shudd3r "shudd3r (32 commits)")

---

Tags

csrfcsrf-protectionmiddlewarepsr-15psr-7

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[neos/flow

Flow Application Framework

862.0M451](/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)
