PHPackages                             sergey-s-moiseev/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. sergey-s-moiseev/cloudflare-middleware

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

sergey-s-moiseev/cloudflare-middleware
======================================

Cloudflare Middleware For Guzzle

v1.2(8y ago)025MITPHPPHP &gt;=5.6

Since Sep 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sergey-s-moiseev/cloudflare-middleware)[ Packagist](https://packagist.org/packages/sergey-s-moiseev/cloudflare-middleware)[ RSS](/packages/sergey-s-moiseev-cloudflare-middleware/feed)WikiDiscussions master Synced 2w ago

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

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 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 ~49 days

Total

4

Last Release

3064d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5ad61e6774afba8ddc113a7baf9c4f21496c3ab4fe42472cc426baebe375e92?d=identicon)[sergey-s-moiseev](/maintainers/sergey-s-moiseev)

---

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)")[![sergey-s-moiseev](https://avatars.githubusercontent.com/u/6397231?v=4)](https://github.com/sergey-s-moiseev "sergey-s-moiseev (1 commits)")

---

Tags

middlewareGuzzlecloudflare

### Embed Badge

![Health badge](/badges/sergey-s-moiseev-cloudflare-middleware/health.svg)

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

43518.2M126](/packages/kevinrob-guzzle-cache-middleware)[caseyamcl/guzzle_retry_middleware

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

21911.7M72](/packages/caseyamcl-guzzle-retry-middleware)[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

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

A jwt authentication middleware for guzzle 6

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

Guzzle 6 middleware used to delay requests dynamically

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

Cache HTTP responses through Guzzle middleware

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

PHPackages © 2026

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