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 1mo 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 19% 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

3495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad0734226d1ee7b270458bcba8378925a806a69f4eeeba3cab4db61066db16db?d=identicon)[kekesed](/maintainers/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

[friendsofsymfony/rest-bundle

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

2.8k73.3M316](/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)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

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

78126.4M414](/packages/react-http)

PHPackages © 2026

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