承接 foodticket/laravel-cloudflare 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

foodticket/laravel-cloudflare

最新稳定版本:v0.0.10

Composer 安装命令:

composer require foodticket/laravel-cloudflare

包简介

A Laravel wrapper for the Cloudflare API

README 文档

README

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.0
  • Laravel >= 9.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.

统计信息

  • 总下载量: 8.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-18