PlainSimple.dev

← Back to Projects

Cloudflare PHP SDK — API Client for PHP

Cloudflare PHP SDK — API Client for PHP

An open-source PHP SDK for working with the Cloudflare API, covering accounts, zones, DNS records, zone settings, and rulesets.

Cloudflare PHP SDK is an open-source PHP 8.3+ client for working with the Cloudflare API v4.

It provides structured endpoints for managing accounts, zones, DNS records, zone settings, and rulesets. API responses are mapped to typed entities, while changes made to those entities are tracked and converted into the appropriate update payloads.

The SDK supports token-based authentication and allows the HTTP transport to be replaced through an adapter interface. The repository also includes automated tests, static analysis, code-style checks, and CI workflows for supported PHP versions.

I built the package to provide a clear, object-oriented interface for the Cloudflare operations I


Links

GitHub Repository