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

how would I add a subdomain to my Cloudflare account for a specific domain on the fly? Is this possible to do, how do other websites tend to create subdomains in code?

You can do so with the Cloudflare API and its PHP libraries at https://github.com/Cloudflare/Cloudflare-php

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.