How can I make cloudflare dns record with php?

I want to make cloudflare dns(subdomains) by automatic with php.
I want to use 10 domains and txt/a/cname/ns record in once.
But I can’t see codes with multiple domains and multiple record types.

that api has only one domain. Can you help me?

You’d have to make an API call to load a BIND file: