PHPackages                             foowie/cloudflare-detection - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. foowie/cloudflare-detection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

foowie/cloudflare-detection
===========================

Detect if request is done through Cloudflare

v0.1.5(3y ago)018.4k↓92.9%MITPHPPHP &gt;=5.5.0

Since Jul 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/foowie/cloudflare-detection)[ Packagist](https://packagist.org/packages/foowie/cloudflare-detection)[ RSS](/packages/foowie-cloudflare-detection/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (7)Used By (0)

Cloudflare Request Detection
============================

[](#cloudflare-request-detection)

[![CircleCI](https://camo.githubusercontent.com/7ad3bf4f2882768f3fbc43a5ca32bb2eb689f4fc1cb6a2c388eb919010ba84ed/68747470733a2f2f636972636c6563692e636f6d2f67682f666f6f7769652f636c6f7564666c6172652d646574656374696f6e2f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/foowie/cloudflare-detection/tree/master)

You can use this library to detect if request is done through Cloudflare.

```
	$cloudflare = new CloudflareDetector();
	echo($cloudflare->isCloudflareRequest());
	echo($cloudflare->getConnectingRequestIp());
	echo($cloudflare->getConnectingCountryCode());

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~445 days

Recently: every ~544 days

Total

6

Last Release

1425d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/301159?v=4)[Daniel Robenek](/maintainers/Foowie)[@foowie](https://github.com/foowie)

---

Top Contributors

[![foowie](https://avatars.githubusercontent.com/u/301159?v=4)](https://github.com/foowie "foowie (6 commits)")

### Embed Badge

![Health badge](/badges/foowie-cloudflare-detection/health.svg)

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

###  Alternatives

[datomatic/enum-helper

Simple opinionated framework agnostic PHP 8.1 enum helper

60312.1k3](/packages/datomatic-enum-helper)

PHPackages © 2026

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