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

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

tunaabutbul/cloudflare-middleware
=================================

Cloudflare Middleware For Guzzle

v1.2(8y ago)2439.9k↓50%10[5 issues](https://github.com/matancohen365/cloudflare-middleware/issues)2MITPHPPHP &gt;=5.6

Since Sep 14Pushed 7y ago4 watchersCompare

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

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

Bypass Cloudflare
=================

[](#bypass-cloudflare)

Bypass Cloudflare Middleware For Guzzle

Installation
============

[](#installation)

Using [composer](https://getcomposer.org/):

```
composer require tunaabutbul/cloudflare-middleware

```

Usage
=====

[](#usage)

```
use GuzzleHttp\Client;
use Tuna\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();
```

Thanks
======

[](#thanks)

- [stackoverflowin](https://github.com/stackoverflowin) for [CloudFlare-PHP-Bypass](https://github.com/stackoverflowin/CloudFlare-PHP-Bypass)
- [KyranRana](https://github.com/KyranRana) for [cloudflare-bypass](https://github.com/KyranRana/cloudflare-bypass)

License
=======

[](#license)

---

This middleware is licensed under the MIT License - see the LICENSE file for details

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~49 days

Total

4

Last Release

3012d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2419213?v=4)[Matan Cohen](/maintainers/matancohen365)[@matancohen365](https://github.com/matancohen365)

---

Top Contributors

[![josiasmontag](https://avatars.githubusercontent.com/u/1945577?v=4)](https://github.com/josiasmontag "josiasmontag (1 commits)")[![padlyuck](https://avatars.githubusercontent.com/u/630610?v=4)](https://github.com/padlyuck "padlyuck (1 commits)")

---

Tags

middlewareGuzzlecloudflare

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tunaabutbul-cloudflare-middleware/health.svg)](https://phpackages.com/packages/tunaabutbul-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)
