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

ActiveLibrary[API Development](/categories/api)

mcstutterfish/cloudflare
========================

Cloudflare API PHP wrapper

v0.1.0(10y ago)01.8k3MITPHP

Since Jul 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mcstutterfish/cloudflare)[ Packagist](https://packagist.org/packages/mcstutterfish/cloudflare)[ RSS](/packages/mcstutterfish-cloudflare/feed)WikiDiscussions master Synced 1mo ago

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

\#Cloudflare API PHP wrapper

I'm gradually using more of Cloudflare's functionality snd adding more features. Please do submit any specific requests as it may be something I already know I need soon and can implement it.

\##Installation Installation should be done via composer, details of how to install composer can be found at

Add `"mcstutterfish/cloudflare": "dev-master"` to your `composer.json` file

Run `composer update` to install the latest version.

\##Usage

In situations where you want to make multiple calls to the API across different services it's easier to create a connection to the api first and then pass that around the other services e.g.

```
    use Cloudflare;
    use Cloudflare\Zone\Dns;

    // Create a connection to the Cloudflare API which you can
    // then pass into other services, e.g. DNS, later on
    $client = new Cloudflare\Api('email@example.com', 'API_KEY');

    // Create a new DNS record
    $dns = new Cloudflare\Dns($client);
    $dns->create('12345678901234567890', 'TXT', '127.0.0.1', 120);
```

If you are just performing a single action then you can connect to the API directly when you instantiate the class e.g.

```
    use Cloudflare;

    // Create a connection to the Cloudflare API which you can
    // then pass into other services, e.g. DNS, later on
    $dns = new Cloudflare\Zone\Dns('email@example.com', 'API_KEY');
    $dns->create('12345678901234567890', 'TXT', '127.0.0.1', 120);
```

\#License MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83% of commits — single point of failure

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

3946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401393213f62694517fe0896a0cc888a741c94feb0c9e6f40f38030058fc7b2a?d=identicon)[mcstutterfish](/maintainers/mcstutterfish)

---

Top Contributors

[![jamesryanbell](https://avatars.githubusercontent.com/u/1842481?v=4)](https://github.com/jamesryanbell "jamesryanbell (39 commits)")[![mcstutterfish](https://avatars.githubusercontent.com/u/887507?v=4)](https://github.com/mcstutterfish "mcstutterfish (8 commits)")

---

Tags

apicloudflare

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[sergkeim/php-cloudflare-api

PHP Client for Cloudflare API.

196.3k](/packages/sergkeim-php-cloudflare-api)[joshuapack/laravel-cloudflare

Use the Cloudflare API for Laravel 10-12 using PHP &gt;= 8.1.

122.0k](/packages/joshuapack-laravel-cloudflare)

PHPackages © 2026

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