PHP Client for Cloudflare API
Workers

Settings

Settings endpoint reference.

Get

Fetches Worker account settings for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
php
$response = $client->workers()->settings()->get('ACCOUNT_ID');
View this operation on the Cloudflare API Reference

Create

Create Worker Account Settings

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
usageModelstringYesDefault usage model.
greenComputeboolYesGreen compute.
php
$response = $client->workers()->settings()->create('ACCOUNT_ID', 'USAGE_MODEL', true);
View this operation on the Cloudflare API Reference
Copyright © 2026