Cloudflare

$cf = new Cloudflare("CF_EMAIL","CF_APIKEY_XXXXX");

DOMAIN

$cf->domain->add("domain.com");

$cf->domain->get();

$cf->domain->detail($id_domain);
$cf->domain->info($id_domain);

SETTINGS

$cf->settings->getSSL($id_domain); # off/full/flexible
$cf->settings->setSSL($id_domain,"flexible");

$cf->settings->getAlwaysUseHTTPS($id_domain); # true/false
$cf->settings->setAlwaysUseHTTPS($id_domain,"true");

$cf->settings->getMinify($id_domain); # ["css"=>true, "js"=>true, "html"=>"false"]
$cf->settings->setMinify($id_domain,["css"=>true, "js"=>true, "html"=>"false"]);
$cf->settings->setMinify($id_domain,true);
$cf->settings->setMinify($id_domain,false);

DNS

$cf->dns->add($id_domain,["type" => "CNAME", "name" => "www", "content" => "firewall.domain.com", "ttl" => 120, "priority" => 10, "proxied" => true]);

$cf->dns->get($id_domain);

$cf->dns->delete($id_domain,$id_dnsrecord);
$cf->dns->remove($id_domain,$id_dnsrecord);