PHPackages                             tomaszaruba/cloudflare-api-nette - 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. tomaszaruba/cloudflare-api-nette

ActiveLibrary

tomaszaruba/cloudflare-api-nette
================================

Implementation of Cloudflare API into Nette framework

v1.0.1(9y ago)2408MITPHPPHP &gt;=5.4

Since Jun 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/zarubatomas/cloudflare-api-nette)[ Packagist](https://packagist.org/packages/tomaszaruba/cloudflare-api-nette)[ RSS](/packages/tomaszaruba-cloudflare-api-nette/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Cloudflare API for Nette
========================

[](#cloudflare-api-for-nette)

[![Build Status](https://camo.githubusercontent.com/acc176ee11c0b6a6d2a78e18fc7e7418e3e3834bc4c0040b841a5d03d16677af/68747470733a2f2f7472617669732d63692e6f72672f7a6172756261746f6d61732f636c6f7564666c6172652d6170692d6e657474652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zarubatomas/cloudflare-api-nette)

Implementation of [jamesryanbell/cloudflare](https://github.com/jamesryanbell/cloudflare) for Nette framework.

Install
-------

[](#install)

```
composer require tomaszaruba/cloudflare-api-nette
```

Register extensions in `config.neon`:

```
extensions:
    cloudflare: TomasZaruba\Cloudflare\Nette\DI\CloudflareExtension
```

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

[](#configuration)

Example `config.neon`

```
cloudflare:
    email: email@email.com  # required email - Cloudflare login
    key: apiKey             # required API key - check Cloudflare administration for more information
    defaultCache: true      # optional true/false if true, creates service Cloudflare\Zone\Cache by default
    identifier: something   # optional - other optional configuration available
```

Example
-------

[](#example)

```
use TomasZaruba\Cloudflare\Nette\Api;
use Cloudflare\Zone\Cache;

class ExampleClass
{

    public function __construct(Api $cloudflareApi, Cache $cloudflareCache){
        $this->cloudflareApi = $cloudflareApi;
        $this->cloudflareCache = $cloudflareCache; // cache autoloads if there is defaultCache: true in config.neon
    }

    public function exampleCloudflare() {

        $dns = new Cloudflare\Zone\Dns($this->cloudflareApi);
        $dns->create('12345678901234567890', 'A', 'name.com', '127.0.0.1', 120);

        $this->cloudflareCache->purge_files(
            $this->cloudflareApi->getParameter('identifier'),
            array($files)
        );

    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3599d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c040e24b170c65ae95936ec9b1d739119615a1102b139e6779344c51666e242?d=identicon)[zatomik](/maintainers/zatomik)

---

Top Contributors

[![zarubatomas](https://avatars.githubusercontent.com/u/1299700?v=4)](https://github.com/zarubatomas "zarubatomas (5 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/tomaszaruba-cloudflare-api-nette/health.svg)

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

PHPackages © 2026

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