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

ActiveLibrary[API Development](/categories/api)

mcprohosting/cloudflare-4
=========================

PHP package for the next generation CloudFlare API

0.0.1(11y ago)4453[1 PRs](https://github.com/MCProHosting/cloudflare-4/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 31Pushed 9y ago5 watchersCompare

[ Source](https://github.com/MCProHosting/cloudflare-4)[ Packagist](https://packagist.org/packages/mcprohosting/cloudflare-4)[ RSS](/packages/mcprohosting-cloudflare-4/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

cloudflare-4
============

[](#cloudflare-4)

A PHP package for the next generation of CloudFlare API.

### Usage Overview

[](#usage-overview)

```
// Set up the request Factory
$factory = new RequestFactory();
$factory->setEmail('FooEmail');
$factory->setKey('FooKey');

// Make a request
$request = $factory->make();
// And run a response
$response = $request->zoneList();

// Alternately, `$response = $factory->zoneList();` does the same thing.

if (!$response->didSucceed()) {
    var_dump($response->getErrors());
    die('Something went wrong!');
} else {
    var_dump($response->getData());
}
```

### Available Methods

[](#available-methods)

You can pass arguments in, or simply pass an associative array as the first argument, where keys are the argument names and values are the corresponding values. Example:

```
$factory->dnsGet('a', 'b');
// is the same as...
$factory->dnsGet([['zone_id' => 'a', 'dns_id' => 'b']]);

```

This may be preferable for functions with very long argument lists.

- `ResponseInterface zoneCreate(mixed $name, bool $jump_start = null, array $organization = null)`
- `ResponseInterface zoneList(mixed $name = null, string $status = null, integer $page = null, integer $per_page = null, string $order = null, string $direction = null, string $match = null)`
- `ResponseInterface zoneGet(mixed $id)`
- `ResponseInterface zonePause(mixed $id)`
- `ResponseInterface zoneResume(mixed $id)`
- `ResponseInterface zonePurge(mixed $id, bool $purge_everything)`
- `ResponseInterface zonePurgeFiles(mixed $id, array $files = null)`
- `ResponseInterface zoneDelete(mixed $id)`
- `ResponseInterface plansList(mixed $zone_id)`
- `ResponseInterface plansGet(mixed $zone_id, string $plan_id)`
- `ResponseInterface plansSet(mixed $zone_id, string $plan_id)`
- `ResponseInterface dnsCreate(mixed $zone_id, string $type = null, string $name = null, string $content = null, integer $ttl = null)`
- `ResponseInterface dnsList(mixed $zone_id, string $name = null, string $content= null, string $vanity_name_server_record = null, integer $page = null, integer $per_page = null, string $order = null, string $direction = null, string $match = null)`
- `ResponseInterface dnsGet(mixed $zone_id, string $dns_id)`
- `ResponseInterface dnsUpdate(mixed $zone_id, string $dns_id, array $__data__)`
- `ResponseInterface dnsDelete(mixed $zone_id, string $dns_id)`

For further information about specific functions, see the [CloudFlare documentation](http://developers.cloudflare.com/next/). All of these return instances of ResponseInterface, which implements the following methods:

- `array getData()` - Returns the array of the "results" from the CloudFlare response.
- `mixed getErrors()` - Returns the array of "errors" from the CloudFlare response.
- `bool didSucceed()` - Returns the "success" of the CloudFlare response, true or false.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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

4301d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6375a3210e43e05516fd8ffa377cec01888a6c3c4e4ce4130cbd0f7c0eeb0a02?d=identicon)[connor4312](/maintainers/connor4312)

---

Top Contributors

[![karoun](https://avatars.githubusercontent.com/u/870701?v=4)](https://github.com/karoun "karoun (5 commits)")[![connor4312](https://avatars.githubusercontent.com/u/2230985?v=4)](https://github.com/connor4312 "connor4312 (2 commits)")

---

Tags

apiwrappercloudflare

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

209145.6k](/packages/aerni-laravel-spotify)[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1118.5k](/packages/lasserafn-laravel-economic)[sergkeim/php-cloudflare-api

PHP Client for Cloudflare API.

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

PHPackages © 2026

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