campaigningsoftware/cambuildr-cloudflare

A package that allows to interact with the Cloudflare Client API

v1.0.1 2024-07-04 09:12 UTC

This package is auto-updated.

Last update: 2024-11-04 10:10:31 UTC


README

Provides a simple way to interact with the Cloudflare API (check existence of DNS entries; create subdomains; delete subdomains)

Installation

Installation is possible via composer

composer require campaigningsoftware/cambuildr-cloudflare

The package will automatically register itself.

Config

The config file can be published via:

php artisan vendor:publish --provider="CampaigningSoftware\CambuildrCloudflare\CambuildrCloudflareServiceProvider" --tag="config"

The following .env entries are used, if the config is not changed:

  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ZONE_ID
  • CLOUDFLARE_CNAME_RECORD_CONTENT
  • CLOUDFLARE_DOMAIN

Testing

composer test