Chat: FSM Chat
Dmitry A. Kirilin (contact me)
This class can be used to implement an automated dialog robot using finite state machines.
The class can be configured to define input text strings under each state, response strings and the new states to assume when the specified input texts appear.
It can act as an automated chat robot that can be hooked to a remote console via telnet or other networking protocol.
Other possible applications: text file parser, command line interpreter etc.
Click here for detailed information about this class on phpclasses.org