PHPackages                             votong/guzzle-cloudflare-middleware - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. votong/guzzle-cloudflare-middleware

ActiveLibrary[HTTP &amp; Networking](/categories/http)

votong/guzzle-cloudflare-middleware
===================================

Cloudflare Middleware For Guzzle

1.0.2(2y ago)049MITPHPPHP ^7|^8

Since Jul 8Pushed 2y agoCompare

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

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

A Guzzle Cloudflare bypass middleware.
======================================

[](#a-guzzle-cloudflare-bypass-middleware)

[![Latest Stable Version](https://camo.githubusercontent.com/a8134ecad93a7ad15fe520adfeb0a0a15de1e4aa82861a4ceeb98a1f60d9e334/68747470733a2f2f706f7365722e707567782e6f72672f636f726e666f72642f67757a7a6c652d636c6f7564666c6172652d6d6964646c65776172652f76657273696f6e2e706e67)](https://packagist.org/packages/cornford/guzzle-cloudflare-middleware)[![Total Downloads](https://camo.githubusercontent.com/8a0e9a4ff36f5eb59404f53c4acbe4acf83e4a7e9d860abf76a2486636bd5677/68747470733a2f2f706f7365722e707567782e6f72672f636f726e666f72642f67757a7a6c652d636c6f7564666c6172652d6d6964646c65776172652f642f746f74616c2e706e67)](https://packagist.org/packages/cornford/guzzle-cloudflare-middleware)[![Build Status](https://camo.githubusercontent.com/ee7e2a2e2b8a3b15552726a59b4850336c1e2a380a6ce0d6bc3dc01d6e1d2328/68747470733a2f2f7472617669732d63692e6f72672f62726164636f726e666f72642f67757a7a6c652d636c6f7564666c6172652d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bradcornford/guzzle-cloudflare-middleware)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/83a827d70b55d74a17be539cabf2cfbe8650559036c9ec9de7781b316d7e6675/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62726164636f726e666f72642f67757a7a6c652d636c6f7564666c6172652d6d6964646c65776172652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bradcornford/guzzle-cloudflare-middleware/?branch=master)

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `votong/guzzle-cloudflare-middleware`.

```
"require": {
    "votong/guzzle-cloudflare-middleware": "1.*"
}

```

Finally, update Composer from the Terminal:

```
composer update

```

Usage
-----

[](#usage)

It's really as simple as using the middleware class with Guzzle:

```
use GuzzleHttp\Client;
use VoTong\GuzzleCloudflareMiddleware\CloudflareMiddleware;
use GuzzleHttp\Cookie\FileCookieJar;

$client = new Client(['cookies' => new FileCookieJar('cookies.txt')]);

$client->getConfig('handler')->push(CloudflareMiddleware::create());

$res = $client->request('GET', 'http://www.exemple.com/');
echo $res->getBody();
```

### License

[](#license)

guzzle-cloudflare-middleware is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

Every ~149 days

Total

3

Last Release

739d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

1.0.2PHP ^7|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/19e8cf95ad5ed33acafa07987b803c48cb58b054ed1414169498598da835d790?d=identicon)[votong](/maintainers/votong)

---

Top Contributors

[![votong](https://avatars.githubusercontent.com/u/13463461?v=4)](https://github.com/votong "votong (5 commits)")

---

Tags

middlewareGuzzlecloudflare

### Embed Badge

![Health badge](/badges/votong-guzzle-cloudflare-middleware/health.svg)

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

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[caseyamcl/guzzle_retry_middleware

Guzzle v6+ retry middleware that handles 429/503 status codes and connection timeouts

21610.7M64](/packages/caseyamcl-guzzle-retry-middleware)[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

842.3M17](/packages/rtheunissen-guzzle-log-middleware)[eljam/guzzle-jwt-middleware

A jwt authentication middleware for guzzle 6

28722.5k3](/packages/eljam-guzzle-jwt-middleware)[rtheunissen/guzzle-rate-limiter

Guzzle 6 middleware used to delay requests dynamically

52177.2k1](/packages/rtheunissen-guzzle-rate-limiter)[brightfish/caching-guzzle

Cache HTTP responses through Guzzle middleware

1031.5k](/packages/brightfish-caching-guzzle)

PHPackages © 2026

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