PHPackages                             vdlp/oc-redirectconditions-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vdlp/oc-redirectconditions-plugin

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

vdlp/oc-redirectconditions-plugin
=================================

Allows developers to create their own Redirect Conditions extension plugins for October CMS.

1.4.1(9mo ago)31.4k24GPL-2.0-onlyPHPPHP ^8.2.0

Since Mar 15Pushed 9mo ago8 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (13)Used By (4)

 [![](https://camo.githubusercontent.com/ee4290363a7f075b6f01785e4893061a3b08ecc8296c188fd253cef567eb6368/68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f69636f6e732f56646c702e52656469726563742e737667)](https://camo.githubusercontent.com/ee4290363a7f075b6f01785e4893061a3b08ecc8296c188fd253cef567eb6368/68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f69636f6e732f56646c702e52656469726563742e737667)

Vdlp.RedirectConditions
=======================

[](#vdlpredirectconditions)

 *This plugin allows developers to create their own Redirect conditions.*

 [![](https://camo.githubusercontent.com/3fba0ed7ceb88649ea8c3c869a5492bf935a323ae86bfcae8927a1e9ed48a88b/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e)](https://camo.githubusercontent.com/3fba0ed7ceb88649ea8c3c869a5492bf935a323ae86bfcae8927a1e9ed48a88b/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e) [![](https://camo.githubusercontent.com/44bad4de60a0c8e3f51113c7950e9cef03e50865033f09ae66ff69778641ab3d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e)](https://camo.githubusercontent.com/44bad4de60a0c8e3f51113c7950e9cef03e50865033f09ae66ff69778641ab3d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e) [![](https://camo.githubusercontent.com/ee2446836d115870ce26c32a27f47be3eb15b9bc0bcde2573e4c798b611a0a2f/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e2f6c6174657374)](https://camo.githubusercontent.com/ee2446836d115870ce26c32a27f47be3eb15b9bc0bcde2573e4c798b611a0a2f/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f76646c702f6f632d7265646972656374636f6e646974696f6e732d706c7567696e2f6c6174657374) [![](https://camo.githubusercontent.com/5457e68a1051820661648bd93ffaf69f8ab513920dd19c261ff3ac5a646d0ed2/68747470733a2f2f62616467656e2e6e65742f62616467652f636d732f4f63746f626572253230434d53)](https://camo.githubusercontent.com/5457e68a1051820661648bd93ffaf69f8ab513920dd19c261ff3ac5a646d0ed2/68747470733a2f2f62616467656e2e6e65742f62616467652f636d732f4f63746f626572253230434d53) [![](https://camo.githubusercontent.com/8ef1333110cedb8be792e165e201c69d776d92c196b7a26938e50ad4ddfb0f84/68747470733a2f2f62616467656e2e6e65742f62616467652f747970652f706c7567696e)](https://camo.githubusercontent.com/8ef1333110cedb8be792e165e201c69d776d92c196b7a26938e50ad4ddfb0f84/68747470733a2f2f62616467656e2e6e65742f62616467652f747970652f706c7567696e) [![](https://camo.githubusercontent.com/63dcad3d06c8994e2328809b0761ae443a260172aa9ef6b1a84c6f73c12e528f/68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f62616467652f696e7374616c6c6174696f6e732e7068703f706c7567696e3d76646c702d7265646972656374636f6e646974696f6e73)](https://camo.githubusercontent.com/63dcad3d06c8994e2328809b0761ae443a260172aa9ef6b1a84c6f73c12e528f/68747470733a2f2f706c7567696e732e76646c702e6e6c2f6f63746f626572636d732f62616467652f696e7374616c6c6174696f6e732e7068703f706c7567696e3d76646c702d7265646972656374636f6e646974696f6e73)

What is a Redirect Condition?
-----------------------------

[](#what-is-a-redirect-condition)

When a positive match occurs in the redirect engine, all registered redirect conditions will be checked if they pass. If one of the conditions does not pass the redirect will not take place.

A redirect condition must implement `RedirectConditionInterface`.

Each redirect condition must have:

- `getCode()` - A unique code.
- `getDescription()` - A short description.
- `getExplanation()` - A brief explanation on when or how to use it.
- `getFormConfig()` - A form configuration array.
- `passes(RedirectRule $rule, string $requestUri)` - Logic whether the condition passes with the given `$rule` and `$requestUri`.

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

[](#requirements)

- The `Vdlp.Redirect` plugin ^4.0.
- PHP 8.2.0 or higher.
- October CMS 4.0 or higher.

Example
-------

[](#example)

This plugin contains an detailed implementation example (plugin). This plugin can be found at [GitHub](https://github.com/vdlp/oc-redirectconditionsexample-plugin).

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance60

Regular maintenance activity

Popularity24

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 84.4% 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 ~233 days

Recently: every ~314 days

Total

11

Last Release

281d ago

PHP version history (5 changes)1.1.0PHP ^7.1.3

1.1.3PHP ^7.1||^8.0

1.2.0PHP ^7.4 || ^8.0

1.3.0PHP ^8.0.2

1.4.0PHP ^8.2.0

### 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 (38 commits)")[![nathan-van-der-werf](https://avatars.githubusercontent.com/u/1123054?v=4)](https://github.com/nathan-van-der-werf "nathan-van-der-werf (3 commits)")[![sander-beenen](https://avatars.githubusercontent.com/u/2843816?v=4)](https://github.com/sander-beenen "sander-beenen (3 commits)")[![mrmaarek](https://avatars.githubusercontent.com/u/3919811?v=4)](https://github.com/mrmaarek "mrmaarek (1 commits)")

---

Tags

octobercmsoctobercms-pluginphppluginredirect-conditions

### Embed Badge

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

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

###  Alternatives

[rainlab/builder-plugin

Builder plugin for October CMS

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

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[lovata/oc-toolbox-plugin

Toolbox plugin for October CMS

3812.0k](/packages/lovata-oc-toolbox-plugin)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)

PHPackages © 2026

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