Asterisk GUI integration

Hi Friends,

  I want to develop a web based (PHP MYSQL) GUI application for asterisk dial plan configuration. The application will store the information in a database and create the dial plan dynamically including voice mail, conference call etc. Can anyone help me how to do it. I have done asterisk AGI. Can anyone give me some logic or procedure how to do it. I shall be very great full to you if you help me out.