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

ActiveLibrary[Security](/categories/security)

rahil/csrf
==========

usefull for prevent csrf attack

1.0.3(3y ago)111MITPHP

Since Mar 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/matin4578107/CSRF)[ Packagist](https://packagist.org/packages/rahil/csrf)[ RSS](/packages/rahil-csrf/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

```
Add automaticaly CSRF checker to your project.

Steps to use:

Windows:
1- start "run server.bat" file
2- run example file on berowser
3- CSRF library automaticaly rewrite example file and add CSRF on it

Syntax you must add to your project:
    require_once "./vendor/autoload.php";

    use SRC\CSRF;

    $path_of_forms_page = "example.php";
    $path_of_CSRF_cheker_page = "example.php";
    $length_of_imported_CSRF = 32;
    $csrf = new CSRF();
    $csrf->setCSRF($path_of_forms_page, $path_of_CSRF_cheker_page, );
    $csrf->generate($length_of_imported_CSRF);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

4

Last Release

1213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77c2d4621ee0f83aa8db96e6ea1664a9c20278960c27e8568c4a145d7a126462?d=identicon)[matin4578107](/maintainers/matin4578107)

---

Top Contributors

[![matin4578107](https://avatars.githubusercontent.com/u/46815187?v=4)](https://github.com/matin4578107 "matin4578107 (11 commits)")

### Embed Badge

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

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

###  Alternatives

[mews/purifier

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

2.0k18.7M142](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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