Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Getting Started

A simple Object Oriented PHP Client for Cloudflare API. This package provides convenient access to the Cloudflare REST API using PHP.

Installation

Install php-cloudflare-api via Composer:

composer
composer require sergkeim/php-cloudflare-api

The full Installation of this package can be found here.

Usage

The full Usage of this package can be found here.

php
<?php

use Cloudflare\Client;

$client = new Client('CLOUDFLARE_TOKEN');

$response = $client->accounts()->list();

$results = $response->json('results');
Table of Contents