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

ActiveLibrary[API Development](/categories/api)

joshuapack/laravel-cloudflare
=============================

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

v1.2(3mo ago)122.0k↓11.1%5[1 PRs](https://github.com/joshuapack/laravel-cloudflare/pulls)MITPHPPHP &gt;=8.1

Since Jun 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/joshuapack/laravel-cloudflare)[ Packagist](https://packagist.org/packages/joshuapack/laravel-cloudflare)[ Docs](https://github.com/joshuapack/laravel-cloudflare)[ RSS](/packages/joshuapack-laravel-cloudflare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

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

[](#laravel-cloudflare)

The Cloudflare API for Laravel 10-12

[See documentation](https://github.com/joshuapack/laravel-cloudflare/wiki)

How to Install
--------------

[](#how-to-install)

First do `composer require joshuapack/laravel-cloudflare`

Get the following information.

1. Your Cloudflare email, simple, the one you use to log in with.
2. Your Cloudflare API Key, found in your account settings.
3. The Zone ID for the domain you want to edit, this is on the main page for the domain.

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

1. `CLOUDFLARE_EMAIL`, the legacy way, must be provided with `CLOUDFLARE_API_KEY`.
2. `CLOUDFLARE_API_KEY`, the legacy way, must be provided with `CLOUDFLARE_EMAIL`.
3. `CLOUDFLARE_API_TOKEN`, the preferred way, no email or key required. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
4. `CLOUDFLARE_ZONE_ID`, optional.

How to use
----------

[](#how-to-use)

There is a Facade `CloudFlare`

You can also use `$cf = app()->make('laravel-cloudflare')`

Then use `$cf` to make the calls like `$cf->setZoneId('12312312312312312312323')`

For example, you could then list the records like so `$cf->listRecords()`Which would return a collection of your records for that zone.

Current Getters/Setters
-----------------------

[](#current-getterssetters)

- `zoneId`

Current Methods
---------------

[](#current-methods)

- `listZones`
- `addRecord`
- `listRecords`
- `getRecordDetails`
- `updateRecordDetails`
- `deleteRecord`

Direct Queries
--------------

[](#direct-queries)

You can see all API calls \[\] for direct querying, however, we only have a couple available at this time.

- `queryDNS`
- `queryFirewall`
- `queryFirewallSettings`
- `queryZones`
- `queryZoneSettings`

Query Any Cloudflare Endpoint from SDK
--------------------------------------

[](#query-any-cloudflare-endpoint-from-sdk)

You can now direct all API calls from the SDK \[\]. Use the `queryCloudflare()` method. See wiki for examples and more details \[\]

Questions
---------

[](#questions)

If you have any questions feel free to ask in the issues tab on github. Same with adding more direct queries or other methods.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance79

Regular maintenance activity

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 53.1% 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 ~152 days

Recently: every ~189 days

Total

12

Last Release

117d ago

Major Versions

v0.4 → v1.02025-03-27

PHP version history (3 changes)v0.1.0PHP ^7.3|^8.0

v0.2.0PHP &gt;=8.0

v0.3.1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/715a9c84930f8c1caaf296a1e9f94bf479528becdd2af814dd43c469646517c3?d=identicon)[joshuapack](/maintainers/joshuapack)

---

Top Contributors

[![joshuapack](https://avatars.githubusercontent.com/u/2073743?v=4)](https://github.com/joshuapack "joshuapack (26 commits)")[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (13 commits)")[![TNovalis](https://avatars.githubusercontent.com/u/9816125?v=4)](https://github.com/TNovalis "TNovalis (8 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")[![SolucionesInformaticasMJ](https://avatars.githubusercontent.com/u/122435258?v=4)](https://github.com/SolucionesInformaticasMJ "SolucionesInformaticasMJ (1 commits)")

---

Tags

apilaravelcloudflare

### Embed Badge

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

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

###  Alternatives

[sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

77273.8k](/packages/sebdesign-artisan-cloudflare)

PHPackages © 2026

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