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.

Deployment

Usage

Cloudflare API provides extensive configuration for Workers Deployment, this helper aims to simplify it.

php

use Cloudflare\Configurations\Workers\Deployment;

$deployment = new Deployment('This is a human-readable message about the deployment');

$deployment
    ->setMessage('This is a human-readable message about the deployment that overwrites the initial message.')
    ->addVersion('version_id', 0.01);

$response = $client->workers()->deployments()->create('zone_id', $deployment);