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.

Subdomain

Cloudflare API docs

Get Subdomain

Returns a Workers subdomain for an account.

php
$response = $client->workers()->subdomain()->get('account_id');

Create Subdomain

Creates a Workers subdomain for an account.

php
$response = $client->workers()->subdomain()->create('account_id', 'example-subdomain');