如何在 PHP "on the fly" 中向 cloudflare 添加子域?

How do I add a subdomain to cloudflare in PHP "on the fly"?

我如何将一个子域添加到我的 cloudflare 帐户中以用于特定域?这可能吗,其他网站如何倾向于在代码中创建子域?

Cloudflare 有一个 API、https://www.cloudflare.com/docs/client-api.html#s5.1

还有一个 PHP Cloudflare 库。 https://github.com/vexxhost/CloudFlare-API