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

Abandoned → [glowy/csrf](/?search=glowy%2Fcsrf)Library[Security](/categories/security)

atomastic/csrf
==============

Cross Site Request Forgery security component.

v3.0.0(3y ago)41.2k2MITPHPPHP ^8.1

Since Feb 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/glowyphp/csrf)[ Packagist](https://packagist.org/packages/atomastic/csrf)[ RSS](/packages/atomastic-csrf/feed)WikiDiscussions 3.x Synced 4d ago

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

Csrf
====

[](#csrf)

Csrf Package provides Cross Site Request Forgery protection by comparing provided token with session token to ensure request validity.

[![License MIT](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365) [![Total downloads](https://camo.githubusercontent.com/6cb82f8dca9d81cc8691995e7fc5905e9c9a9438e6897ca848b267ff762142b9/68747470733a2f2f706f7365722e707567782e6f72672f676c6f77792f637372662f646f776e6c6f616473)](https://packagist.org/packages/glowy/csrf) [![GitHub Repo stars](https://camo.githubusercontent.com/bd8e19d80a2e6eb1bff157c389ec9e53b1b7a0fda02cf983d8dfc7442869acea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676c6f77797068702f637372663f6c6162656c3d5374617273)](https://camo.githubusercontent.com/bd8e19d80a2e6eb1bff157c389ec9e53b1b7a0fda02cf983d8dfc7442869acea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f676c6f77797068702f637372663f6c6162656c3d5374617273) [![GitHub forks](https://camo.githubusercontent.com/76373eac131de69e55c69f436903c66962fb88b505b3eecd0833d06efbac76d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f676c6f77797068702f637372663f6c6162656c3d466f726b73)](https://camo.githubusercontent.com/76373eac131de69e55c69f436903c66962fb88b505b3eecd0833d06efbac76d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f676c6f77797068702f637372663f6c6162656c3d466f726b73) [![Hits of Code](https://camo.githubusercontent.com/47a7ff4f19583e82fe79a48dfe9d800fe863c45d66190af883db525af71f3203/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f676c6f77797068702f637372663f6272616e63683d332e78)](https://hitsofcode.com)

### Installation

[](#installation)

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

[](#with-composer)

```
composer require glowy/csrf

```

### Resources

[](#resources)

- [Documentation](https://awilum.github.io/glowyphp/csrf)

### Tests

[](#tests)

Run tests

```
./vendor/bin/pest

```

### License

[](#license)

[The MIT License (MIT)](https://github.com/glowyphp/csrf/blob/master/LICENSE.txt)Copyright (c) [Sergey Romanenko](https://github.com/Awilum)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~72 days

Total

7

Last Release

1315d ago

Major Versions

v1.0.1 → v2.0.02021-12-23

2.x-dev → v3.0.02022-07-03

PHP version history (2 changes)v1.0.0PHP ^7.4 || ^8.0

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (45 commits)")

---

Tags

csrfglowyglowyphppackagephpphp-packagesecurityphpsecuritycsrfglowyglowyphp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[asbiin/laravel-webauthn

Laravel Webauthn support

309574.8k](/packages/asbiin-laravel-webauthn)[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)
