2017 © Pedro Peláez
 

library cloudflare-adaptor

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

image

kekesed/cloudflare-adaptor

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

  • Thursday, October 13, 2016
  • by kekesed
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Cloudflare Adaptor

An easy way to normalize your Cloudflare-altered HTTP Information with a single line., (*1)

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., (*2)

How to use it

Simply do this JUST BEFORE EVERYTHING STARTS!, (*3)

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

Here's an example with Fat Free Framework, (*4)

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

  • Detect HTTPS.
  • Get Real IP.br/ This normalize the $_SERVER['REMOTE_ADDR'] var.

The Versions

13/10 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.3.6

 

by Avatar kekesed

13/10 2016

v1.1beta

1.1.0.0-beta

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

  Sources   Download

MIT

The Requires

  • php >=5.3.6

 

by Avatar kekesed