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

Update

Create Worker Account Settings

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
valuesarrayYes`default_usage_model` and `green_compute`.
php
$response = $client->workers()->settings()->update('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference
Copyright © 2026