If using PHP AGI, then converting from dial plan to PHP AGI will be simply enough. Simply change the dial plan parameters to arguments "catched" by the PHP AGI. Mostly about say date/time, passed value, say digit, say number, and catching dtmf tone/key pressed. That's it.