Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Cloud Connector Rules

Cloud Connector allows you to route matching incoming traffic from your website to a public cloud provider that you define such as AWS, Google Cloud, and Azure. With Cloud Connector you can make Cloudflare the control center for your web traffic, including traffic served from public cloud providers, without having to configure additional rules.

Cloudflare API docs

Get

Get Rules.

php
$response = $client->zones()->cloudConnector()->get('account_id');

Update

Update Rules.

php
$response = $client->zones()->cloudConnector()->update('account_id', [
    'enabled' => true,
    'provider' => 'aws_s3'
]);
Table of Contents