跳到正文

Cloudflare PHP SDK

维护中
cloudflare/cloudflare-php

Cloudflare 官方 v4 API 的 PHP SDK(Composer 包 cloudflare/sdk):支持 DNS 记录、Zone、页面规则、WAF、速率限制等。

在 GitHub 查看
星标
673
Fork
269
关注
673
未关闭 Issue
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.

按共同分类和标签排序的同类开源项目。

全部 SDK 项目 →