Note: This is a community-maintained PHP SDK covering a subset of the Cloudflare API. A comprehensive, auto-generated PHP SDK is planned for the future. In the meantime, for full API coverage consider using the Cloudflare API directly.
Install via Composer (cloudflare/sdk):
composer require cloudflare/sdk
The Cloudflare API can be found here. Each API call is provided via a similarly named function within various classes in the Cloudflare\API\Endpoints namespace:
$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();
We welcome community contribution to this repository. CONTRIBUTING.md will help you start contributing.
Licensed under the 3-clause BSD license. See the LICENSE file for details.
(top 30 of 50)
PHP
99.9%
Note: This is a community-maintained PHP SDK covering a subset of the Cloudflare API. A comprehensive, auto-generated PHP SDK is planned for the future. In the meantime, for full API coverage consider using the Cloudflare API directly.
Install via Composer (cloudflare/sdk):
composer require cloudflare/sdk
The Cloudflare API can be found here. Each API call is provided via a similarly named function within various classes in the Cloudflare\API\Endpoints namespace:
$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();
We welcome community contribution to this repository. CONTRIBUTING.md will help you start contributing.
Licensed under the 3-clause BSD license. See the LICENSE file for details.
(top 30 of 50)
PHP
99.9%