PHPackages                             kekesed/cloudflare-adaptor - 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. kekesed/cloudflare-adaptor

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

kekesed/cloudflare-adaptor
==========================

An easy way to normalize your Cloudflare-altered HTTP Information with a single line.

v1.1beta(9y ago)011MITPHPPHP &gt;=5.3.6

Since Oct 13Pushed 9y agoCompare

[ Source](https://github.com/Kekesed/cloudflare-adaptor)[ Packagist](https://packagist.org/packages/kekesed/cloudflare-adaptor)[ RSS](/packages/kekesed-cloudflare-adaptor/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Cloudflare Adaptor
==================

[](#cloudflare-adaptor)

An easy way to normalize your Cloudflare-altered HTTP Information with a single line.

This will help your Framework to understand what is happening with the current connection made from Cloudflare's server. This will just simply change your `$_SERVER` variables.

How to use it
-------------

[](#how-to-use-it)

Simply do this JUST BEFORE EVERYTHING STARTS!

```
require_once('cf-adaptor/cf-adaptor.php');
```

Here's an example with [Fat Free Framework](https://github.com/bcosca/fatfree)

```
array_map(function($_p){ require_once($_p); },[
  'app/Adaptor/cf-adaptor.php', // see? this is the adaptor
  'app/f3/base.php',
  'app/config.php',
  'app/app.php'
]);
\F3::run();
```

Main Feature
------------

[](#main-feature)

- Detect HTTPS.
- Get Real IP.
    This normalize the `$_SERVER['REMOTE_ADDR']` var.

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

3593d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12927266?v=4)[Kekesed](/maintainers/kekesed)[@Kekesed](https://github.com/Kekesed)

---

Top Contributors

[![Kekesed](https://avatars.githubusercontent.com/u/12927266?v=4)](https://github.com/Kekesed "Kekesed (12 commits)")

### Embed Badge

![Health badge](/badges/kekesed-cloudflare-adaptor/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

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

85997.3k126](/packages/httpsoft-http-message)[thesis/nats

Async (fiber based) client for Nats.

758.3k](/packages/thesis-nats)

PHPackages © 2026

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