It's of course possible to create a basket (which is an invoice in CBSubs) through PHP, but it's not as simple as calling 1 function and done. It's an entire chain of API calls. We don't have a simple means of doing what you're wanting. I don't have a recommended way of doing this either beyond the API calls for just giving a user a subscription, which does not generate a basket.