affcool / cloudflare
Cloudflare 客户端 API v4 的 PHP 绑定。修复bug版本
dev-master
2018-11-24 11:17 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ^6.2.2
- psr/http-message: ~1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.6
- phpmd/phpmd: @stable
- phpunit/phpunit: 5.7.5
This package is auto-updated.
Last update: 2024-09-25 07:58:15 UTC
README
安装
安装此软件包的推荐方法是使用 Packagist 依赖管理器 (cloudflare/sdk)。您可以在 Cloudflare 知识库下找到具体的使用示例: Cloudflare PHP API 绑定
Cloudflare API 版本 4
Cloudflare API 可以在这里找到 这里。每个 API 调用都通过在 Cloudflare\API\Endpoints 命名空间中具有类似名称的函数提供
- DNS 记录
- 区域
- 用户管理(部分)
- Cloudflare IP
- 页面规则
- Web 应用防火墙 (WAF)
- 虚拟 DNS 管理
- 自定义主机名
- 管理 TLS 设置
- 区域锁定和 User-Agent 阻止规则
- 组织管理
- Railgun 管理
- 无密钥 SSL
- 原始 CA
请注意,此存储库目前正在开发中,正在积极添加额外的类和端点。
入门
$key = new Cloudflare\API\Auth\APIKey('user@example.com', 'apiKey'); $adapter = new Cloudflare\API\Adapter\Guzzle($key); $user = new Cloudflare\API\Endpoints\User($adapter); echo $user->getUserID();
贡献
我们欢迎社区为此存储库做出贡献。 CONTRIBUTING.md 将帮助您开始贡献。
许可
许可协议为 3-clause BSD 许可。有关详细信息,请参阅 LICENSE 文件。