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 2d 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

Maturity21

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://avatars.githubusercontent.com/u/12951021?v=4)[Lantos](/maintainers/Lantos)[@lantos](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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