crit/cloudflare

This package is abandoned and no longer maintained. No replacement package was suggested.

Class abstraction for cloudflare

dev-master 2013-12-18 17:52 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:29:18 UTC


README

This module provides static methods for server variables set by CloudFlare. Future updates as needed. Meant for small projects or for stand-alone systems.

Requirements

  • PHP 5.3.0+

Install

Easy install with Composer.

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

Usage

<?php
include "vendor/autoload.php";

use CloudFlare\CloudFlare;

$visitor_ip = CloudFlare::VisitorIP();
$visitor_country = CloudFlare::VisitorCountry();