campaigningsoftware / cambuildr-cloudflare
A package that allows to interact with the Cloudflare Client API
v1.0.1
2024-07-04 09:12 UTC
Requires
- php: ^8.2
- cloudflare/sdk: ^1.3
- laravel/framework: ^11.14
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