Giter VIP home page Giter VIP logo

cloudflare's Introduction

CloudFlare module for ZF2

CloudFlare module provide an object-oriented PHP wrapper for CloudFlare API.

Build Status Latest Stable Version Coverage Status Dependencies Status

Introduction

CloudFlare module intend to provide a way to interact easily with the CloudFlare API. CloudFlare distribute your content around the world so it’s closer to your visitors (speeding up your site). The service optimizes your assets and secures your website.

Requirements

  • PHP 5.3 or higher

Installation

CloudFlare module only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.

You can install the module from command line:

$ php composer.phar require neeckeloo/cloudflare:dev-master

Alternatively, you can also add manually the dependency in your composer.json file:

{
    "require": {
        "neeckeloo/cloudflare": "dev-master"
    }
}

Enable the module by adding CloudFlare key to your application.config.php file. Customize the module by copy-pasting the cloudflare.global.php.dist file to your config/autoload folder.

Configuration

You must specifiy your email account and CloudFlare api token to use the module.

return array(
    'cloudflare' => array(
        /**
         * Define api url
         */
        // 'api_url' => 'https://www.cloudflare.com/api_json.html',

        /**
         * Define email account
         */
        // 'email' => '',

        /**
         * Define api token
         */
        // 'token' => '',
    ),
);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.