Download the PHP package rafalmasiarek/dashboard-kit-addon-scheduler without Composer

On this page you can find all versions of the php package rafalmasiarek/dashboard-kit-addon-scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dashboard-kit-addon-scheduler

dashboard-kit-addon-scheduler

Cron-expression task scheduler addon for rafalmasiarek/dashboard-kit.

Auto-discovers tasks from module schedule definitions. Runs tasks via HTTP endpoints with a queue+redirect mechanism to avoid PHP execution timeouts on long-running jobs.

Requirements

Installation

Quick start

Configuration

Key Default Description
endpoint true Register native HTTP endpoints (/scheduler/status, /scheduler/run, /scheduler/job)
prefix '' URL prefix prepended to all endpoints (e.g. '/v1')
token SCHEDULER_TOKEN env Bearer token required on GET /scheduler/run

Config can be passed as the third argument to register() or via app.config['scheduler'] in Dashboard::create().

HTTP endpoints

Endpoint Auth Description
GET /scheduler/status none Lists all tasks with last_run_at and is_due
GET /scheduler/run Bearer token Runs due tasks; queues long-running ones and redirects
GET /scheduler/job queue token Executes one step of a queued task (internal)

Trigger from a system cron:

Response format

GET /scheduler/run and GET /scheduler/job return the same normalized shape whether the task ran directly or through a queue:

result.final is the task's own return value from its last run — never dropped, even when the task completed through several queued parts. Pass ?verbose=1 (or true/yes/on) to also get result.steps, one entry per run with its own started_at/finished_at/duration_ms/status/result/error.

By default every task uses Output\DefaultOutputPolicy. Register a task-specific policy to customize what result.final/result.steps contain:

A custom policy implements OutputPolicyInterface::buildResult(string $taskName, array $runs, array $options): array, or extends AbstractOutputPolicy and only implements buildStep(array $run): array to reuse the default final/steps structure.

Module schedule format

Add a schedule key to any module's module.php:

The global task ID will be notes.cleanup. Tasks appear in /scheduler/status.

Task definition keys

Key Required Description
id yes Local task ID (prefixed with module slug for the global ID)
cron yes Cron expression (5-field, e.g. '*/5 * * * *')
action yes Factory action name. Built-in: 'callable'
options no Action-specific options. For callable: handler (PHP callable or 'Class@method')
enabled no false disables the task without removing it (default: true)
allow_parallel no Allow concurrent runs (default: false)

Built-in cleanup task

__scheduler.cleanup runs daily at 03:15 and removes queue files older than 24 hours from storage/cron_queues/. It is registered automatically — no configuration needed.

Monitoring

The plugin provides MonitoringInterface and NoopMonitoring (default). To wire a custom implementation:

Or read from app.config (config lives alongside other scheduler settings):

MyMonitoring must implement rafalmasiarek\DashboardKitScheduler\MonitoringInterface:

All methods must swallow their own exceptions — monitoring must never break scheduling.

Disabling native endpoints

When endpoint: false, only Scheduler::class and QueueManager::class are registered in the container. Use this when building custom routes with your own auth (e.g. via dashboard-kit-addon-api token scopes).

License

Business Source License 1.1 — see LICENSE. For alternative licensing, contact us.


All versions of dashboard-kit-addon-scheduler with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
rafalmasiarek/dashboard-kit Version >=5.0
dragonmantank/cron-expression Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rafalmasiarek/dashboard-kit-addon-scheduler contains the following files

Loading the files please wait ...