PHPackages                             alpharecon19/cloudflare-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. alpharecon19/cloudflare-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

alpharecon19/cloudflare-php
===========================

v0.2(10y ago)3239PHPPHP &gt;=5.6

Since May 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AlphaRecon19/Cloudflare-PHP)[ Packagist](https://packagist.org/packages/alpharecon19/cloudflare-php)[ RSS](/packages/alpharecon19-cloudflare-php/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (4)Versions (5)Used By (0)

Cloudflare-PHP
==============

[](#cloudflare-php)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3d295ab18b07c9a71d7e6071a0310aa2560d3e1a610cb8f321957419be7d4f04/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c7068615265636f6e31392f436c6f7564666c6172652d5048502f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlphaRecon19/Cloudflare-PHP/?branch=master)

A simple PHP Library that allows you to interact with Cloudflare's API using [guzzle](https://github.com/guzzle/guzzle). More information about endpoints can be found [here](https://api.cloudflare.com).

Authentication
--------------

[](#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](https://www.cloudflare.com/a/account/my-account). 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.

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

```
$APIKEY = "1234567893feefc5f0q5000bfo0c38d90bbeb";
$Email = "example@example.com";

$Cloudflare = new Cloudflare\Cloudflare($APIKEY, $Email);
```

Example - Getting users details
-------------------------------

[](#example---getting-users-details)

```
