The PHP client for the Cloudflare API.
A simple, Object Oriented PHP client that provides convenient access to the Cloudflare REST API — accounts, zones, DNS, load balancers, R2, Workers, and more. Extensively documented, lazily loaded, and built for Laravel too.
index.php
use Cloudflare\Client;
$client = new Client('CLOUDFLARE_TOKEN');
$response = $client->loadBalancers()->list(zoneId: 'zone_id');
$balancers = $response->json('result');

