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

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

lantosbro/guzzlehttp-cloudflare
===============================

Bypass Cloudflare protection using GuzzleHTTP

03PHP

Since Oct 17Pushed 2y agoCompare

[ Source](https://github.com/LantosBro/cloudflare-bypassx)[ Packagist](https://packagist.org/packages/lantosbro/guzzlehttp-cloudflare)[ RSS](/packages/lantosbro-guzzlehttp-cloudflare/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![logo](logo.png)](logo.png)

Guzzle Cloudflare Bypass
========================

[](#guzzle-cloudflare-bypass)

[![latest release](https://camo.githubusercontent.com/00815a07f1ffeb0737423577b31e50b4ee2fc6c743877c5e42cb22f2f218ecf9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a61796d6f756c696e2f67757a7a6c65687474702d636c6f7564666c6172652e737667 "latest release")](http://github.com/jaymoulin/guzzlehttp-cloudflare/releases)

[![PayPal donation](https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png "PayPal donation")](https://www.paypal.me/jaymoulin)[![Buy me a coffee](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67 "Buy me a coffee")](https://www.buymeacoffee.com/3Yu8ajd7W)[![Become a Patron](https://camo.githubusercontent.com/d76055b9afd65f4eb06a73ace837a251ee15678e093326f89fafa11dff0ccb77/68747470733a2f2f62616467656e2e6e65742f62616467652f6265636f6d652f61253230706174726f6e2f463936383534 "Become a Patron")](https://patreon.com/jaymoulin)

(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

Bypass Cloudflare DDoS protection - Please use it carefully

This package is based on [KyranRana's cloudflare-bypass](https://github.com/KyranRana/cloudflare-bypass).

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

[](#installation)

Using `composer`

```
composer require jaymoulin/guzzlehttp-cloudflare
```

Usage
-----

[](#usage)

```
$sUrl = 'https://thebot.net/';
$oClient = new \GuzzleHttp\Client([
    'cookies' => new \GuzzleHttp\Cookie\FileCookieJar(tempnam('/tmp', __CLASS__)),
    'headers' => ['Referer' => $sUrl],
]); // 1. Create Guzzle instance
$aOptions = [
    'cache' => new \CloudflareBypass\Storage($sPathToYourCacheFolder),
]; // Example for cache, this is completely optional, with $sPathToYourCacheFolder a string to your cache folder
/** @var \GuzzleHttp\HandlerStack $oHandler */
$oHandler = $oClient->getConfig('handler');
$oHandler->push(\GuzzleCloudflare\Middleware::create($aOptions)); //2. ???

echo (string)$oClient->request('GET', $sUrl)->getBody(); //3. Profit!!
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12bf0c6b32f3505f87cd9ec8a6ce8617e4b4c7453922083f43f5783f518a5d11?d=identicon)[Lantos](/maintainers/Lantos)

---

Top Contributors

[![LantosBro](https://avatars.githubusercontent.com/u/23532069?v=4)](https://github.com/LantosBro "LantosBro (1 commits)")[![Verinice](https://avatars.githubusercontent.com/u/62174219?v=4)](https://github.com/Verinice "Verinice (1 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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