Download the PHP package vdlp/oc-redirectconditions-plugin without Composer
On this page you can find all versions of the php package vdlp/oc-redirectconditions-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vdlp/oc-redirectconditions-plugin
More information about vdlp/oc-redirectconditions-plugin
Files in vdlp/oc-redirectconditions-plugin
Package oc-redirectconditions-plugin
Short Description Allows developers to create their own Redirect Conditions extension plugins for October CMS.
License GPL-2.0-only
Informations about the package oc-redirectconditions-plugin
Vdlp.RedirectConditions
This plugin allows developers to create their own Redirect conditions.
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
- The
Vdlp.Redirect
plugin. - PHP 8.0.2 or higher.
- October CMS 3.0 or higher.
Example
This plugin contains an detailed implementation example (plugin). This plugin can be found at GitHub.
All versions of oc-redirectconditions-plugin with dependencies
composer/installers Version ^1.0 || ^2.0
october/rain Version ^3.0
vdlp/oc-redirect-plugin Version ^3.1