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.

Versions

You can upload changes (versions) to your Worker independent of changing the version that is actively serving traffic (deployment).

Cloudflare API docs

List Versions

List of Worker Versions. The first version in the list is the latest version.

php
$response = $client->workers()->versions()->list('account_id', 'script_name');

Upload Version

Upload a Worker Version without deploying to Cloudflare's network. You can find more about the multipart metadata on Cloudflare docs.

php
//TODO

Get Version Details

php
$response = $client->workers()->details()->details('account_id', 'script_name', 'version_id');