{"id":20410010,"url":"https://github.com/vdlp/oc-redirectconditions-plugin","last_synced_at":"2025-04-12T15:53:17.596Z","repository":{"id":62543880,"uuid":"175776714","full_name":"vdlp/oc-redirectconditions-plugin","owner":"vdlp","description":"Allows developers to create their own Redirect Conditions extension plugins for October CMS","archived":false,"fork":false,"pushed_at":"2024-03-14T13:49:29.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-26T10:21:30.729Z","etag":null,"topics":["octobercms","octobercms-plugin","php","plugin","redirect-conditions"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdlp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-15T08:11:52.000Z","updated_at":"2023-06-12T11:49:21.000Z","dependencies_parsed_at":"2023-02-09T03:00:19.282Z","dependency_job_id":null,"html_url":"https://github.com/vdlp/oc-redirectconditions-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-redirectconditions-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-redirectconditions-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-redirectconditions-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdlp%2Foc-redirectconditions-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdlp","download_url":"https://codeload.github.com/vdlp/oc-redirectconditions-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351396,"owners_count":21089272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["octobercms","octobercms-plugin","php","plugin","redirect-conditions"],"created_at":"2024-11-15T05:44:36.199Z","updated_at":"2025-04-12T15:53:17.572Z","avatar_url":"https://github.com/vdlp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg height=\"60px\" width=\"60px\" src=\"https://plugins.vdlp.nl/octobercms/icons/Vdlp.Redirect.svg\" \u003e\n\t\u003ch1 align=\"center\"\u003eVdlp.RedirectConditions\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cem\u003eThis plugin allows developers to create their own Redirect conditions.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/php/vdlp/oc-redirectconditions-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/license/vdlp/oc-redirectconditions-plugin\"\u003e\n\t\u003cimg src=\"https://badgen.net/packagist/v/vdlp/oc-redirectconditions-plugin/latest\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/cms/October%20CMS\"\u003e\n\t\u003cimg src=\"https://badgen.net/badge/type/plugin\"\u003e\n\t\u003cimg src=\"https://plugins.vdlp.nl/octobercms/badge/installations.php?plugin=vdlp-redirectconditions\"\u003e\n\u003c/p\u003e\n\n## What is a Redirect Condition?\n\nWhen a positive match occurs in the redirect engine, all registered redirect conditions will be checked if they pass.\nIf one of the conditions does not pass the redirect will not take place.\n\nA redirect condition must implement `RedirectConditionInterface`.\n\nEach redirect condition must have:\n\n* `getCode()` - A unique code.\n* `getDescription()` - A short description.\n* `getExplanation()` - A brief explanation on when or how to use it.\n* `getFormConfig()` - A form configuration array.\n* `passes(RedirectRule $rule, string $requestUri)` - Logic whether the condition passes with the given `$rule` and `$requestUri`.\n\n## Requirements\n\n- The `Vdlp.Redirect` plugin.\n- PHP 8.0.2 or higher.\n- October CMS 3.0 or higher.\n\n## Example\n\nThis plugin contains an detailed implementation example (plugin). This plugin can be found at [GitHub](https://github.com/vdlp/oc-redirectconditionsexample-plugin).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-redirectconditions-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdlp%2Foc-redirectconditions-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdlp%2Foc-redirectconditions-plugin/lists"}