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

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

stuki/cloudflare
================

A ZF2 plugin to fix global variables when using CloudFlare

1.0.0(11y ago)14371proprietaryPHPPHP &gt;=5.3.3

Since Sep 15Pushed 11y ago2 watchersCompare

[ Source](https://github.com/StukiOrg/CloudFlare)[ Packagist](https://packagist.org/packages/stuki/cloudflare)[ Docs](http://www.github.com/StukiOrg/CloudFlare)[ RSS](/packages/stuki-cloudflare/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CloudFlare Module for ZF2
=========================

[](#cloudflare-module-for-zf2)

This module adjusts the global variables $\_SERVER\['REMOTE\_ADDR'\], $\_SERVER\['HTTPS'\], and $\_SERVER\['HTTP\_X\_FORWARDED\_PROTO'\] to their correct values when using CloudFlare.

Install
-------

[](#install)

```
php composer.phar require "stuki/cloudflare": "dev-master"
```

Enable module in `config/application.config.php`:

```
return array(
    'modules' => array(
        'Stuki\\CloudFlare',
        ...
    ),
```

.htaccess
---------

[](#htaccess)

Included in this repo are .htaccess rewrite rules to allow only CloudFlare apps to connect to your application and redirect all other traffic sources to your CloudFlare hosted domain.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

4299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49dd7d9dba889ac674b0da447d9c1e69d1128dc3ccbaef98ba83d6ee519fc2d6?d=identicon)[tom\_anderson](/maintainers/tom_anderson)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (16 commits)")

---

Tags

cloudflarecloudflare

### Embed Badge

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

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

###  Alternatives

[alibabacloud/sdk

Alibaba Cloud SDK for PHP - Easier to Use Alibaba Cloud in your PHP project

5292.1M46](/packages/alibabacloud-sdk)[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3412.9M5](/packages/monicahq-laravel-cloudflare)[vectorface/whip

A PHP class for retrieving accurate IP address information for the client.

3731.1M14](/packages/vectorface-whip)[cloudflare/cf-ip-rewrite

Library to rewrite CloudFlare IP Addresses to the end-user IP address

15826.8k6](/packages/cloudflare-cf-ip-rewrite)[orrison/cumulus

Import DNS records from Laravel Vapor into Cloudflare

3919.3k](/packages/orrison-cumulus)[sixty-nine/php-cloud-lib

A library to generate words clouds in PHP

2012.0k](/packages/sixty-nine-php-cloud-lib)

PHPackages © 2026

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