Skip to content

Cloudflare PHP SDK

Maintained
cloudflare/cloudflare-php

Cloudflare's PHP SDK for the v4 API (cloudflare/sdk on Composer): DNS records, zones, page rules, WAF, load balancers and more.

View on GitHub
Stars
673
Forks
269
Watchers
673
Open issues
89

Overview

The Cloudflare PHP SDK wraps the Cloudflare v4 API for PHP. It is community-maintained and covers a subset of the API; the README notes that a comprehensive, auto-generated PHP SDK is planned, and suggests calling the API directly for full coverage in the meantime.

Requirements and install

PHP 8.1 or later:

composer require cloudflare/sdk

Coverage

Each API call is a similarly named method on classes in the Cloudflare\API\Endpoints namespace, including DNS records and analytics, zones, page rules, the web application firewall, custom hostnames, TLS settings, zone lockdown and user-agent rules, Origin CA, load balancers and firewall settings.

Similar open-source projects, ranked by shared categories and tags.

All SDK projects →