PHPackages                             vdlp/oc-csrf-plugin - 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. vdlp/oc-csrf-plugin

ActiveOctober-plugin[Security](/categories/security)

vdlp/oc-csrf-plugin
===================

Adds CSRF protection to October CMS frontend.

2.3.0(10mo ago)540.6k↓44.2%3GPL-2.0PHPPHP ^8.0.2CI failing

Since Jul 19Pushed 10mo ago8 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (15)Used By (0)

Vdlp.Csrf
=========

[](#vdlpcsrf)

Adds CSRF protection.

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

[](#requirements)

- PHP 8.0.2 or higher
- October CMS 2.0 or higher

Installation
------------

[](#installation)

```
composer require vdlp/oc-csrf-plugin

```

Configuration
-------------

[](#configuration)

Add the plugin configuration to your config folder:

```
php artisan vendor:publish --provider="Vdlp\Csrf\ServiceProviders\CsrfServiceProvider" --tag="vdlp-csrf-config"

```

Add the CSRF token to the `` section:

```

```

Add the CSRF token to the AJAX requests:

```

$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});

```

Questions? Need help?
---------------------

[](#questions-need-help)

If you have any question about how to use this plugin, please don't hesitate to contact us at . We're happy to help you.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance54

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% 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 ~181 days

Recently: every ~304 days

Total

13

Last Release

315d ago

Major Versions

1.1.2 → 2.0.02021-07-13

PHP version history (4 changes)1.0.0PHP &gt;=7.1

1.1.2PHP ^7.1||^8.0

2.0.0PHP ^7.4 || ^8.0

2.1.0PHP ^8.0.2

### Community

Maintainers

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

---

Top Contributors

[![adrenth](https://avatars.githubusercontent.com/u/5699988?v=4)](https://github.com/adrenth "adrenth (43 commits)")[![nathan-van-der-werf](https://avatars.githubusercontent.com/u/1123054?v=4)](https://github.com/nathan-van-der-werf "nathan-van-der-werf (4 commits)")[![sander-beenen](https://avatars.githubusercontent.com/u/2843816?v=4)](https://github.com/sander-beenen "sander-beenen (3 commits)")[![jacobdekeizer](https://avatars.githubusercontent.com/u/15017400?v=4)](https://github.com/jacobdekeizer "jacobdekeizer (2 commits)")

---

Tags

csrfoctober-cmsoctober-pluginoctobercmsphpsecurity

### Embed Badge

![Health badge](/badges/vdlp-oc-csrf-plugin/health.svg)

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

###  Alternatives

[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[rainlab/translate-plugin

Translate plugin for October CMS

12666.5k9](/packages/rainlab-translate-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[offline/oc-boxes-free-plugin

Visual Page Builder for October CMS

132.6k](/packages/offline-oc-boxes-free-plugin)

PHPackages © 2026

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