Skip to content


PHP TwiML Library for Twilio

I have been working on a fun new Twilio project, and part of it involves generating TwiML markup, a specialized XML syntax. I have done this before by hooking into a Kohana controller, which worked for my other project well enough. There are other Twilio response libraries that range from quite thorough to downright minimalist.

I’m attaching my current version of a Twilio response library for PHP. It’s a single file and it will do syntax checking when it’s done. This is the best of both worlds, in my opinion.

TwiML PHP Library

Posted in Uncategorized.