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. stuki/cloudflare

ActiveLibrary

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 10y 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 1mo 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 54% 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

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

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.1k](/packages/league-flysystem)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k511.3M2.2k](/packages/aws-aws-sdk-php)[facade/ignition

A beautiful error page for Laravel applications.

2.1k102.2M329](/packages/facade-ignition)[facade/ignition-contracts

Solution contracts for Ignition

635144.0M134](/packages/facade-ignition-contracts)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

566146.7M470](/packages/spatie-laravel-ignition)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)

PHPackages © 2026

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