PHPackages                             notwonderful/filament-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. [Caching](/categories/caching)
4. /
5. notwonderful/filament-cloudflare

ActiveLibrary[Caching](/categories/caching)

notwonderful/filament-cloudflare
================================

Cloudflare management plugin for Filament PHP - Manage Cloudflare settings, firewall, cache, and analytics directly from your Filament admin panel

0.1.3(4mo ago)318↓88.2%2MITPHPPHP ^8.3CI passing

Since Feb 12Pushed 4mo agoCompare

[ Source](https://github.com/notwonderful/filament-cloudflare)[ Packagist](https://packagist.org/packages/notwonderful/filament-cloudflare)[ Docs](https://github.com/notwonderful/filament-cloudflare)[ RSS](/packages/notwonderful-filament-cloudflare/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Filament Cloudflare
===================

[](#filament-cloudflare)

[![PHP Version](https://camo.githubusercontent.com/0e636722677a61c567dcf28f72172c051f915f26834f465b398b26d6da4ea5d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75653f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://camo.githubusercontent.com/0e636722677a61c567dcf28f72172c051f915f26834f465b398b26d6da4ea5d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75653f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)[![Filament Version](https://camo.githubusercontent.com/d1b2340045ea46206e2671a873c2609d82baf0f408265782c5d95d743c2694b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d342e30253230253743253230352e302d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d66696c616d656e74)](https://camo.githubusercontent.com/d1b2340045ea46206e2671a873c2609d82baf0f408265782c5d95d743c2694b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d342e30253230253743253230352e302d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d66696c616d656e74)[![License](https://camo.githubusercontent.com/153acf9dff19deb8abfc598c53bac50a4ceae0f5c83a552711060d3d78d2c057/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/153acf9dff19deb8abfc598c53bac50a4ceae0f5c83a552711060d3d78d2c057/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)

Manage Cloudflare settings, firewall rules, cache, page rules, analytics, access apps, and edge caching directly from your Filament admin panel.

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

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require notwonderful/filament-cloudflare
```

### 2. Publish the config

[](#2-publish-the-config)

```
php artisan vendor:publish --tag=cloudflare-config
```

### 3. Set Cloudflare credentials

[](#3-set-cloudflare-credentials)

Add to your `.env` file:

```
# Option 1: API Token (recommended)
CLOUDFLARE_TOKEN=your_api_token
CLOUDFLARE_ZONE_ID=your_zone_id
CLOUDFLARE_ACCOUNT_ID=your_account_id

# Option 2: Email + Global API Key
CLOUDFLARE_EMAIL=you@example.com
CLOUDFLARE_API_KEY=your_global_api_key
CLOUDFLARE_ZONE_ID=your_zone_id
CLOUDFLARE_ACCOUNT_ID=your_account_id
```

### 4. Register the plugin

[](#4-register-the-plugin)

In your Filament panel provider:

```
use notwonderful\FilamentCloudflare\CloudflarePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(CloudflarePlugin::make());
}
```

Features
--------

[](#features)

FeatureDescription**DNS Records**Full CRUD for A, AAAA, CNAME, MX, TXT, NS, SRV, CAA records. Proxy toggle, export BIND file**Zone Settings**View and edit SSL mode, security level, HTTPS enforcement, browser integrity check, and more**Firewall Access Rules**Block, challenge, or whitelist IPs, IP ranges, and countries**User Agent Rules**Block or challenge requests by user agent string**Custom Firewall Rules**View custom WAF rules (read-only)**Cache Management**Purge everything, or by specific files, tags, or hosts**Cache Rules**Create, edit, and delete cache rules via the Rulesets API**Page Rules**Manage page rules with forwarding URLs, cache levels, SSL settings**Analytics**Requests, bandwidth, unique visitors, cached vs uncached, threats — with chart widgets**Access Apps**View, create, and delete Cloudflare Access applications**Edge Caching**One-click guest page caching and media attachment caching via cache rulesCloudflare API Coverage
-----------------------

[](#cloudflare-api-coverage)

### Supported

[](#supported)

- DNS Records management — CRUD (`zones/{id}/dns_records`)
- Zone Settings — read &amp; edit (`zones/{id}/settings`)
- Zone Details — list &amp; read (`zones`, `zones/{id}`)
- Firewall Access Rules — CRUD (`zones/{id}/firewall/access_rules/rules`)
- User Agent Rules — CRUD (`zones/{id}/firewall/ua_rules`)
- Custom Firewall Rules — read-only (`zones/{id}/rulesets/phases/http_request_firewall_custom/entrypoint`)
- Cache Purge — purge all, by files, tags, hosts (`zones/{id}/purge_cache`)
- Cache Rules (Rulesets API) — CRUD (`zones/{id}/rulesets/phases/http_request_cache_settings/...`)
- Page Rules — CRUD (`zones/{id}/pagerules`)
- Analytics (GraphQL) — zone analytics, captcha, rule activity, DMARC
- Access Applications — create, read, delete (`accounts/{id}/access/apps`)
- Access Groups — read (`accounts/{id}/access/groups`)
- Access Identity Providers — read (`accounts/{id}/access/identity_providers`)
- Edge Caching — guest page caching &amp; media caching (built on Cache Rules)

### Not Supported

[](#not-supported)

- SSL/TLS Certificate management
- Workers / Workers Routes
- Load Balancing
- Rate Limiting (rulesets API)
- WAF Managed Rulesets
- Spectrum
- Argo Smart Routing
- R2 Storage
- D1 Database
- Pages (deployment)
- Tunnel management
- Email Routing
- Waiting Room
- Bot Management

API Token Permissions
---------------------

[](#api-token-permissions)

When creating a Cloudflare API Token, assign these permissions:

ScopePermissionLevelZoneDNSRead, EditZoneZone SettingsRead, EditZoneZoneReadZoneFirewall ServicesEditZoneCache PurgePurgeZonePage RulesEditAccountAccess: Apps and PoliciesEditAccountAccount SettingsReadFor read-only analytics, no additional permissions are needed beyond Zone Read (GraphQL API uses the same token).

Cloudflare API Deprecation Notes
--------------------------------

[](#cloudflare-api-deprecation-notes)

Some endpoints used by this plugin are deprecated by Cloudflare:

FeatureEndpointStatusFirewall Access Rules`firewall/access_rules/rules`Functional, but Cloudflare recommends WAF Custom RulesUser Agent Rules`firewall/ua_rules`Deprecated in favor of Custom Rules with `http.user_agent`Page Rules`pagerules`Deprecated, being replaced by Redirect Rules / Cache RulesThese features continue to work. Future versions of this plugin may migrate to their replacements.

Credits
-------

[](#credits)

Inspired by the [DigitalPoint App for Cloudflare](https://xenforo.com/community/resources/digitalpoint-app-for-cloudflare-r.8750/) for XenForo.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance76

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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 ~4 days

Total

4

Last Release

131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8d32e96910a3e8d0794abc7ca155b2299f0fb046145221a9e1733dfe19c181d?d=identicon)[notwonderful](/maintainers/notwonderful)

---

Top Contributors

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

---

Tags

cloudflarecloudflare-apifilamentfilament-pluginfilamentphpcachecloudflareanalyticscdnfirewallfilamentfilament-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/notwonderful-filament-cloudflare/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

13314.7k](/packages/nexxai-laravel-cfcache)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

211189.7k8](/packages/bezhansalleh-filament-google-analytics)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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