PHP code to insert ticket automatically

PHP code to insert ticket automatically

Hi, we're looking at migrating from another support desk system. But I am having problems finding out how to insert a ticket via PHP.

All I need to do is create a ticket from admin[at]mycompany to client[at]anothercompany via a PHP file on our system.

Is CURL the way to go? And if so, do you have a bit of sample code to get me started?