PHPackages                             chudeusz/cloudflare-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. chudeusz/cloudflare-php-sdk

ActiveLibrary[API Development](/categories/api)

chudeusz/cloudflare-php-sdk
===========================

PHP binding for v4 of the Cloudflare Client API.

1.0.0(5y ago)031GPL-2.0-onlyPHPPHP &gt;=7.2.5

Since Oct 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Chudeusz/cloudflare-php-sdk)[ Packagist](https://packagist.org/packages/chudeusz/cloudflare-php-sdk)[ RSS](/packages/chudeusz-cloudflare-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

Cloudflare SDK (v4 API Binding for PHP 7)
=========================================

[](#cloudflare-sdk-v4-api-binding-for-php-7)

[![Build Status](https://camo.githubusercontent.com/6e4d441035700a150eb6ae24f5d5c9bdda7b9264be331b10e322668ef2aec6bd/68747470733a2f2f7472617669732d63692e6f72672f636c6f7564666c6172652f636c6f7564666c6172652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cloudflare/cloudflare-php)

Installation
------------

[](#installation)

The recommended way to install this package is via the Packagist Dependency Manager ([cloudflare/sdk](https://packagist.org/packages/cloudflare/sdk)). You can get specific usage examples on the Cloudflare Knowledge Base under: [Cloudflare PHP API Binding](https://support.cloudflare.com/hc/en-us/articles/115001661191)

Cloudflare API version 4
------------------------

[](#cloudflare-api-version-4)

The Cloudflare API can be found [here](https://api.cloudflare.com/). Each API call is provided via a similarly named function within various classes in the **Cloudflare\\API\\Endpoints** namespace:

- [DNS Records](https://www.cloudflare.com/dns/)
- [DNS Analytics](https://api.cloudflare.com/#dns-analytics-table)
- Zones
- User Administration (partial)
- [Cloudflare IPs](https://www.cloudflare.com/ips/)
- [Page Rules](https://support.cloudflare.com/hc/en-us/articles/200168306-Is-there-a-tutorial-for-Page-Rules-)
- [Web Application Firewall (WAF)](https://www.cloudflare.com/waf/)
- Virtual DNS Management
- Custom hostnames
- Manage TLS settings
- Zone Lockdown and User-Agent Block rules
- Organization Administration
- [Railgun](https://www.cloudflare.com/railgun/) administration
- [Keyless SSL](https://blog.cloudflare.com/keyless-ssl-the-nitty-gritty-technical-details/)
- [Origin CA](https://blog.cloudflare.com/universal-ssl-encryption-all-the-way-to-the-origin-for-free/)
- Crypto
- Load Balancers
- Firewall Settings

Note that this repository is currently under development, additional classes and endpoints being actively added.

Getting Started
---------------

[](#getting-started)

```
$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();
```

Contributions
-------------

[](#contributions)

We welcome community contribution to this repository. [CONTRIBUTING.md](CONTRIBUTING.md) will help you start contributing.

Licensing
---------

[](#licensing)

Licensed under the 3-clause BSD license. See the [LICENSE](LICENSE) file for details.

###  Health Score

22

—

LowBetter than 24% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9b130938fe5c2f795000890406452f0b727d6c2fd9bef87ec0426bcd680faa6?d=identicon)[Chudeusz](/maintainers/Chudeusz)

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/chudeusz-cloudflare-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/chudeusz-cloudflare-php-sdk/health.svg)](https://phpackages.com/packages/chudeusz-cloudflare-php-sdk)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.4k282.8k4](/packages/theodo-group-llphant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
