Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Cron Triggers

Cron Triggers allow users to map a cron expression to a Worker using a scheduled() handler that enables Workers to be executed on a schedule.

Cloudflare API docs

Fetch

Fetches Cron Triggers for a Worker.

php
$response = $client->workers()->cron()->get('account_id', 'script_name');

Update

UpdatesCron Triggers for a Worker.

php
$response = $client->workers()->cron()->update('account_id', 'script_name', ['*/30 * * * *']);
Table of Contents