2017 © Pedro Peláez
 

library cloudflare-php

image

alpharecon19/cloudflare-php

  • Thursday, July 13, 2017
  • by AlphaRecon19
  • Repository
  • 1 Watchers
  • 2 Stars
  • 102 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Cloudflare-PHP

Scrutinizer Code Quality, (*1)

A simple PHP Library that allows you to interact with Cloudflare's API using guzzle. More information about endpoints can be found here., (*2)

Authentication

Information required to connect to Cloudflare's API are your API Key and Email, these can be found in your My Account page within cloudflare. This by default is stored in the Cloudflare.yml file located in the root of your project. You can just copy the Cloudflare.yml.dist file replacing your credentials there., (*3)

Alternatively, if this is not an option you can just pass these variables into the Cloudflare class when you create it., (*4)

$APIKey = "1234567893feefc5f0q5000bfo0c38d90bbeb";
$Email = "example@example.com";

$Cloudflare = new Cloudflare\Cloudflare($APIKey, $Email);

Example - Getting users details

<?php
require 'vendor/autoload.php';

$Cloudflare = new Cloudflare\Cloudflare();
$User = new Cloudflare\User($Cloudflare);

var_dump($User->get());

The Versions

13/07 2017

dev-develop

dev-develop

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon

24/10 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon

15/06 2016

v0.2

0.2.0.0

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon

18/05 2016

v0.1.1

0.1.1.0

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon

17/05 2016

v0.1

0.1.0.0

  Sources   Download

The Requires

 

The Development Requires

by Chris Hilsdon