PHPackages                             ali1/cakephp-cloudflare-api - 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. [API Development](/categories/api)
4. /
5. ali1/cakephp-cloudflare-api

AbandonedArchivedCakephp-plugin[API Development](/categories/api)

ali1/cakephp-cloudflare-api
===========================

A CakePHP component to use the CloudFlare in PHP

22.9k1PHP

Since Apr 19Pushed 12y agoCompare

[ Source](https://github.com/Ali1/cakephp-cloudflare-api)[ Packagist](https://packagist.org/packages/ali1/cakephp-cloudflare-api)[ RSS](/packages/ali1-cakephp-cloudflare-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CloudFlare API plugin for CakePHP 2.0+
======================================

[](#cloudflare-api-plugin-for-cakephp-20)

This plugin is a (*very*) thin veil over vexxhost's [CloudFlare-API](https://github.com/vexxhost/CloudFlare-API) for use in CakePHP controllers. Please use composer to install so that the required dependencies are installed

Composer Installation
---------------------

[](#composer-installation)

- Add to composer, this will also install the Amazon SDK for PHP as a dependency

    ```
      "ali1/cakephp-cloudflare-api": "dev-master"

    ```

Non-composer Installation
-------------------------

[](#non-composer-installation)

- Place the contents of this repo in Plugin/CloudFlareApi
- Download the contents of  into Plugin/CloudFlareApi/Vendor/vexxhost/cloud-flare-api

Configuration
-------------

[](#configuration)

- You must add configuration to bootstrap.php.

    ```
      Configure::write('CloudFlareApi.email', 'CLOUDFLARE EMAIL');
      Configure::write('CloudFlareApi.apiKey', 'CLOUDFLARE API KEY');

    ```

    - Don't forget to replace the placeholder text with your actual keys!
- Add the component to a controller

    ```
      public $components = array('CloudFlareApi.CloudFlareApi');

    ```

Example
-------

[](#example)

- Remove a file from the cache

    ```
      $this->CloudFlareApi->zone_file_purge('mydomain.com', 'http://forum.mydomain.com/images/logo.png');

    ```
- From a model or shell

    ```
      if (!isset($this->CloudFlareApi)) {
      	App::import('Component', 'CloudFlareApi.CloudFlareApi');
      	$collection = new ComponentCollection();
      	$Controller =& new Controller();
      	$this->CloudFlareApi = new CloudFlareApiComponent($collection);
      	$this->CloudFlareApi->initialize($Controller);
      }
      $this->CloudFlareApi->zone_file_purge('mydomain.com', 'http://forum.mydomain.com/images/logo.png');

    ```
- From a console

    Console/cake CloudFlareApi.call fpurge\_ts mydomain.com Console/cake CloudFlareApi.call zone\_file\_purge mydomain.com

Notes
-----

[](#notes)

You can find the method definitions here: [https://github.com/vexxhost/CloudFlare-API/blob/master/class\_cloudflare.php](https://github.com/vexxhost/CloudFlare-API/blob/master/class_cloudflare.php)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/637933d952b260bfeeaf8ec8fda92a5acf7eda16df6044fe840f782058a4c7ae?d=identicon)[Ali1](/maintainers/Ali1)

---

Top Contributors

[![Ali1](https://avatars.githubusercontent.com/u/218558?v=4)](https://github.com/Ali1 "Ali1 (9 commits)")

### Embed Badge

![Health badge](/badges/ali1-cakephp-cloudflare-api/health.svg)

```
[![Health](https://phpackages.com/badges/ali1-cakephp-cloudflare-api/health.svg)](https://phpackages.com/packages/ali1-cakephp-cloudflare-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
