PHPackages                             teakowa/laravel-cloudflare - 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. teakowa/laravel-cloudflare

ActiveLibrary[API Development](/categories/api)

teakowa/laravel-cloudflare
==========================

Use the Cloudflare API right from Laravel.

v1.1.1(5y ago)1201Apache-2.0PHPPHP ^7.2

Since Jul 31Pushed 4y agoCompare

[ Source](https://github.com/Teakowa/Laravel-Cloudflare)[ Packagist](https://packagist.org/packages/teakowa/laravel-cloudflare)[ Docs](https://github.com/teakowa/laravel-cloudflare)[ RSS](/packages/teakowa-laravel-cloudflare/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

Laravel Cloudflare
==================

[](#laravel-cloudflare)

The Cloudflare API right from Laravel.

[![Travis (.org)](https://camo.githubusercontent.com/7494e9e530bd138e5304016db74d54827c5a7f0a121eb0607c465941ffc56a11/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7494e9e530bd138e5304016db74d54827c5a7f0a121eb0607c465941ffc56a11/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)[![StyleCI](https://camo.githubusercontent.com/6fe1087d3bd9252f0cc34f66d17d16b91fadd4645adf41609d161feae7910bed/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139393637343030352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/199674005)[![PHP from Packagist](https://camo.githubusercontent.com/a473c00d4ffb0a0b4696e4a45d2402064188f03988f4c908df7f640df2a5b711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a473c00d4ffb0a0b4696e4a45d2402064188f03988f4c908df7f640df2a5b711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/1577ccc5bd7208b8bc4ee25488080e560f8c2ceac8948717423616c506df17f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1577ccc5bd7208b8bc4ee25488080e560f8c2ceac8948717423616c506df17f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465616b6f77612f6c61726176656c2d636c6f7564666c6172653f7374796c653d666c61742d737175617265)[![LICENSE](https://camo.githubusercontent.com/c613fa8a331ccbe74fcf817bb6e5f42fba7bad4d71a0f273be5bd868bebd7214/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d416e74692532303939362d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![LICENSE](https://camo.githubusercontent.com/e6257f9c8af0b485f331e3b31b6e6d10dba910e451b2f5b7bdadfa28d0bb56a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4170616368652d2d322e302d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/996icu/996.ICU/blob/master/LICENSE)[![996.icu](https://camo.githubusercontent.com/4fbb402a9a9db6e0a9bc62076d2075ebe16e803956309bfbe825f2fa59cf3d19/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b2d3939362e6963752d7265642e7376673f7374796c653d666c61742d737175617265)](https://996.icu)

*Note: This will work for anything Laravel 5 and up but I made it for Laravel 5.5 so I won't add the service provider and facade instructions here.*

Installation
------------

[](#installation)

First of all, You need get your API key **(not token)** from [Cloudflare](https://dash.cloudflare.com/profile/api-tokens)

```
composer require Teakowa/laravel-cloudflare
```

Publish the config file.

```
php artisan vendor:publish

```

Put them in your `.env` as the following, obviously and respectively.

1. `CLOUDFLARE_EMAIL`
2. `CLOUDFLARE_API_KEY`

Usage
-----

[](#usage)

Lastly, you can using `Cloudflare` class in controller use namespace top of that file

```
use Teakowa\Cloudflare\Cloudflare;

$data = (new Cloudflare)->zone()->listZones();
```

or if you want a simple, you can use `cloudflare` function:

```
cloudflare()
```

LICENSE
-------

[](#license)

The code in this repository, unless otherwise noted, is under the terms of both the [Anti 996](https://github.com/996icu/996.ICU/blob/master/LICENSE) License and the Apache License (Version 2.0).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.4% 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 ~113 days

Total

5

Last Release

2025d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.0.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a4d2045a2050b2bc892d20b35784b82d37ee456e914d05ddf132ec349dea7e6?d=identicon)[teakowa](/maintainers/teakowa)

---

Top Contributors

[![Teakowa](https://avatars.githubusercontent.com/u/27560638?v=4)](https://github.com/Teakowa "Teakowa (19 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")[![samehmust](https://avatars.githubusercontent.com/u/23337673?v=4)](https://github.com/samehmust "samehmust (1 commits)")

---

Tags

cloudflarecloudflare-apilaravel-cloudflarepackagistapilaravelcloudflare

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/teakowa-laravel-cloudflare/health.svg)

```
[![Health](https://phpackages.com/badges/teakowa-laravel-cloudflare/health.svg)](https://phpackages.com/packages/teakowa-laravel-cloudflare)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)[joshuapack/laravel-cloudflare

Use the Cloudflare API for Laravel 10-12 using PHP &gt;= 8.1.

122.0k](/packages/joshuapack-laravel-cloudflare)

PHPackages © 2026

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