URL Cron

Expose the Flarum scheduler to a URL for use on shared hosting envs

Compatible with Flarum v1.8.5

Latest release 0.1.1

136 downloads

released on May 10, 2023

URL Cron

License Latest Stable Version Total Downloads

A Flarum extension. Expose the Flarum scheduler to a URL for use on shared hosting envs

Installation

Install with composer:

composer require ianm/url-cron:"*"

Updating

composer update ianm/url-cron

Usage

When running Flarum on shared hosting, some providers do not allow CLI access in order to setup a cron job for the Flarum Scheduler, but instead offer a solution to trigger a URL in order to accomplish the same goal. This extension exposes {FORUM_URL}/api/cron/trigger, which in turn calls the CLI command php flarum schedule:run.

Currently, there is no protection on this endpoint, although authorization may be (optionally) added in the future as needs dictate.

Links

© 2024 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.