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

ActiveLibrary[Security](/categories/security)

avatarphp/glide-csrf
====================

A Minimal CSRF(Cross Site Request Forgery) Protection Packages

v1.0.0(5y ago)3152MITPHP

Since Oct 24Pushed 3y agoCompare

[ Source](https://github.com/AvatarPHP/Glide-CSRF)[ Packagist](https://packagist.org/packages/avatarphp/glide-csrf)[ Docs](https://github.com/AvatarPHP/glide-csrf)[ RSS](/packages/avatarphp-glide-csrf/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[![Glide CSRF](https://camo.githubusercontent.com/9921ae91da3190e64c7f5f421be37911af361844f3095974c7fb34db83ec0594/687474703a2f2f6c6f676f2e6d2d736172666172617a2e636f6d2f4176617461725048502f476c6964652d435352462f476c6964652d435352462e706e67)](https://camo.githubusercontent.com/9921ae91da3190e64c7f5f421be37911af361844f3095974c7fb34db83ec0594/687474703a2f2f6c6f676f2e6d2d736172666172617a2e636f6d2f4176617461725048502f476c6964652d435352462f476c6964652d435352462e706e67)

Glide CSRF
==========

[](#glide-csrf)

 **🔆 A Minimal CSRF(Cross Site Request Forgery) Protection Package 🌙**
 A simple and elegant open-source Minimal CSRF(Cross Site Request Forgery) Protection Package written in the PHP language.

 [ ![website](https://camo.githubusercontent.com/4d907f1e378e391452d4152a564dd10e945180def1043ef7f6706cacd8bede7d/68747470733a2f2f62616467652e667572792e696f2f67682f417661746172504850253246476c6964652d435352462e737667) ](https://github.com/AvatarPHP/Glide-CSRF) [ ![LICENSE](https://camo.githubusercontent.com/379978b70620ef5e64ca3491175fbda2280506d6523a05c066afdc3ba23126d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d61726b746578742f6d61726b746578742e737667) ](LICENSE) [ ![issues](https://camo.githubusercontent.com/0c3402be794ca4fd3384f201e2b68138450bdfdc718427da4a7f9a0ae9393971/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4176617461725048502f476c6964652d43535246) ](https://github.com/AvatarPHP/Glide-CSRF/issues)

###  [ Website ](http://www.glide.m-sarfaraz.com/)  |  [ Docs ](https://github.com/AvatarPHP/Glide-CSRF/tree/master/docs/DOCUMENTATION.md)  |  [ Contribution ](https://github.com/AvatarPHP/Glide-CSRF#contribution)

[](#----------website---------------------docs--------------------contribution------)

 with ❤︎ by Sarfaraz

Notice
------

[](#notice)

Stable Version Release

Requirements
------------

[](#requirements)

PHP 5.6.0 and later.

Composer
--------

[](#composer)

You can install the bindings via Composer,Run the following command:

`composer require avatarphp/glide-csrf`

To use the bindings, use Composer's autoload:

`require_once('vendor/autoload.php');`

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.

`require_once('/path/to/glide-csrf/src/glide.php');`

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$csrf=new Glide();

echo $csrf->token();
```

Verify the token

```
if(Glide::validate($key)){
    //next phase
};
```

Please read the [documentation](docs/DOCUMENTATION.md)

Contribution
------------

[](#contribution)

Please read the [Contributing Guide](CONTRIBUTING.md)

Contributors
------------

[](#contributors)

Special thanks to @[jocs](https://github.com/jocs)

License
-------

[](#license)

[**MIT**](LICENSE).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2078d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69970831?v=4)[AvatarPHP](/maintainers/AvatarPHP)[@AvatarPHP](https://github.com/AvatarPHP)

---

Top Contributors

[![Muhammad-Sarfaraz](https://avatars.githubusercontent.com/u/50302555?v=4)](https://github.com/Muhammad-Sarfaraz "Muhammad-Sarfaraz (39 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mews/purifier

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

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

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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