Read from the package's own PHP files at the commit 369cd6e3629c: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
CloudflareFactoryclassCloudflare, from its options:
3 options · 1 method
CloudflareProviderclassCloudflare's API v4: a zone's records through cloudflare/sdk (its DNS and Zones endpoints), each with its id and "proxied" kept in its options so an update leaves the proxy as it was; the Registrar's domains of an account, read through the same adapter. Cloudflare's API neither checks nor registers a domain, and a zone's name servers are Cloudflare's own: no AvailabilityInterface, RegistrarInterface, NameserversInterface here.
10 methods
Omnidns\Cloudflare
CloudflareFactory class
final class CloudflareFactory extends ProviderFactory CloudflareFactory.php:23
Cloudflare, from its options:
token an API token (required) with Zone:Read and DNS:Edit on the zones it manages, and Account Registrar:Read for the Registrar's domains account_id the account whose Registrar domains are read (DomainsInterface); empty: no domains base_uri https://api.cloudflare.com/client/v4/
cloudflare/sdk sends the calls, through its Guzzle adapter - or the adapter given to this factory (a test's, a proxy's).
Options
| Option | Default | |
|---|---|---|
account_id | '' | |
base_uri | 'https://api.cloudflare.com/client/v4/' | |
token | required |
CloudflareFactory::__construct()
public function __construct(readonly ?Adapter $adapter = null)CloudflareProvider class
final class CloudflareProvider implements DnsInterface, DomainsInterface CloudflareProvider.php:30
Cloudflare's API v4: a zone's records through cloudflare/sdk (its DNS and Zones endpoints), each with its id and "proxied" kept in its options so an update leaves the proxy as it was; the Registrar's domains of an account, read through the same adapter. Cloudflare's API neither checks nor registers a domain, and a zone's name servers are Cloudflare's own: no AvailabilityInterface, RegistrarInterface, NameserversInterface here.
CloudflareProvider::__construct()
public function __construct(readonly Adapter $adapter, readonly ?string $accountId = null)CloudflareProvider::getName()
public function getName(): stringCloudflareProvider::getTitle()
public function getTitle(): stringCloudflareProvider::capabilities()
public function capabilities(): CapabilitiesCloudflareProvider::records()
public function records(string $zone, ?string $type = null, ?string $name = null): arrayCloudflareProvider::add()
public function add(string $zone, Record $record): RecordCloudflareProvider::update()
public function update(string $zone, Record $current, Record $new): RecordCloudflareProvider::delete()
public function delete(string $zone, Record $record): voidCloudflareProvider::domains()
public function domains(): arrayCloudflareProvider::domain()
public function domain(string $domain): DomainInfo