New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

foodticket/laravel-cloudflare

A Laravel wrapper for the Cloudflare API
13,022 3
Install
composer require foodticket/laravel-cloudflare
Latest Version:v0.1.0
PHP:^8.3
Laravel:12 · 13
Older releases:8 – 11
License:MIT
Last Updated:Sep 7, 2026
Links: GitHub  ·  Packagist
Maintainer: rikmorskate

Laravel wrapper for Cloudflare

This is a Laravel wrapper for the official Cloudflare API v4 SDK (https://github.com/cloudflare/cloudflare-php). The full documentation of the Cloudflare API can be found here.

Since the Cloudflare Images API is not yet supported by the official SDK, we included a wrapper for the Cloudflare Images API. The full documentation of the Cloudflare Images API can be found here.

Requirements

  • PHP >= 8.3
  • Laravel >= 12.0

Installation

To start using the package, you need to install it via Composer:

composer require foodticket/laravel-cloudflare

Configuration

Add the following environment variables to your .env file:

CLOUDFLARE_API_EMAIL=<API email>
CLOUDFLARE_API_KEY=<API key>

If you need to you can publish the configuration file with the following command:

php artisan vendor:publish --provider='Foodticket\Cloudflare\CloudflareServiceProvider' --tag='config'

Getting started

All the Cloudflare API endpoints are available via the Cloudflare facade.

use Foodticket\Cloudflare\Facades\Cloudflare;

$zones = Cloudflare::zones()->listZones();

Security Vulnerabilities

If you discover a security vulnerability within this project, please email me via developer@foodticket.nl.

Related Packages

sergkeim/php-cloudflare-api

PHP Client for Cloudflare API.

7,761 19
sebdesign/artisan-cloudflare

Laravel artisan commands for Cloudflare

301,799 76
railken/lara-eye
38,915 39
api
juampi92/api-resources

Manage your resources maintaining API versioning

934,433 111
tailflow/laravel-orion

Orion for Laravel allows you to build a fully featured REST API based on your El...

803,682 1,592

Version History

Version Released PHP Laravel License
v0.1.0 ^8.3 ^12.0|^13.0 MIT
v0.0.12 ^8.3 ^12.0|^13.0 MIT
v0.0.11 ^8.3 ^12.0|^13.0 MIT
v0.0.10 ^8.2 ^11.0|^12.0 MIT
v0.0.9 ^8.0|^8.1|^8.2|^8.3 ^8.0|^9.0|^10.0|^11.0 MIT