PHPackages                             brunotimsa/cloudflare-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. brunotimsa/cloudflare-sdk

ActiveLibrary

brunotimsa/cloudflare-sdk
=========================

PHP binding for v4 of the Cloudflare Client API.

1.3.3(1y ago)016BSD-3-ClausePHPPHP &gt;=7.2.5

Since Aug 29Pushed 1y agoCompare

[ Source](https://github.com/brunodotgg/cloudflare-php)[ Packagist](https://packagist.org/packages/brunotimsa/cloudflare-sdk)[ RSS](/packages/brunotimsa-cloudflare-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (5)Versions (28)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

38

—

LowBetter than 84% of packages

Maintenance50

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor4

4 contributors hold 50%+ of commits

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

Every ~121 days

Recently: every ~348 days

Total

24

Last Release

390d ago

Major Versions

0.9.1 → 1.0.02017-09-20

PHP version history (2 changes)0.9.1PHP &gt;=7.0.0

1.1.7PHP &gt;=7.2.5

### Community

Maintainers

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

---

Top Contributors

[![IcyApril](https://avatars.githubusercontent.com/u/2026099?v=4)](https://github.com/IcyApril "IcyApril (74 commits)")[![phily245](https://avatars.githubusercontent.com/u/645738?v=4)](https://github.com/phily245 "phily245 (35 commits)")[![exportsmedia](https://avatars.githubusercontent.com/u/5817656?v=4)](https://github.com/exportsmedia "exportsmedia (19 commits)")[![kleisauke](https://avatars.githubusercontent.com/u/12746591?v=4)](https://github.com/kleisauke "kleisauke (18 commits)")[![levidurfee](https://avatars.githubusercontent.com/u/10798199?v=4)](https://github.com/levidurfee "levidurfee (14 commits)")[![benedict-erwin](https://avatars.githubusercontent.com/u/3462264?v=4)](https://github.com/benedict-erwin "benedict-erwin (13 commits)")[![kanasite](https://avatars.githubusercontent.com/u/985129?v=4)](https://github.com/kanasite "kanasite (12 commits)")[![anthonysterling](https://avatars.githubusercontent.com/u/159960?v=4)](https://github.com/anthonysterling "anthonysterling (11 commits)")[![pauladams8](https://avatars.githubusercontent.com/u/37362614?v=4)](https://github.com/pauladams8 "pauladams8 (10 commits)")[![jacobbednarz](https://avatars.githubusercontent.com/u/283234?v=4)](https://github.com/jacobbednarz "jacobbednarz (8 commits)")[![legacybetadev](https://avatars.githubusercontent.com/u/52174826?v=4)](https://github.com/legacybetadev "legacybetadev (8 commits)")[![brunodotgg](https://avatars.githubusercontent.com/u/35509391?v=4)](https://github.com/brunodotgg "brunodotgg (5 commits)")[![beltofte](https://avatars.githubusercontent.com/u/108249?v=4)](https://github.com/beltofte "beltofte (4 commits)")[![HemeraOne](https://avatars.githubusercontent.com/u/13874964?v=4)](https://github.com/HemeraOne "HemeraOne (3 commits)")[![thellimist](https://avatars.githubusercontent.com/u/6690196?v=4)](https://github.com/thellimist "thellimist (3 commits)")[![darinrandal](https://avatars.githubusercontent.com/u/28626802?v=4)](https://github.com/darinrandal "darinrandal (3 commits)")[![zaherg](https://avatars.githubusercontent.com/u/27624?v=4)](https://github.com/zaherg "zaherg (2 commits)")[![axelabhay](https://avatars.githubusercontent.com/u/53849656?v=4)](https://github.com/axelabhay "axelabhay (2 commits)")[![czPechy](https://avatars.githubusercontent.com/u/8396185?v=4)](https://github.com/czPechy "czPechy (2 commits)")[![hans00](https://avatars.githubusercontent.com/u/1781902?v=4)](https://github.com/hans00 "hans00 (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M78](/packages/google-cloud-core)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)

PHPackages © 2026

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