A.L.I.C.E. and variations of her, respond to the language AIML (Artificial Intelligence Markup Language) to get instruction about how to "think." There are several implementations of this in languages such as Java, Ruby, Perl, Python, etc, including one in PHP called Program E.
If you are looking for a phpBB forum artificial intelligence, I am running Forum AI on one of my personal sites, and have had a lot of success with it.
These PHP interfaces give PHP users a familiar platform from which to jump into AIML, and develop their own brand of AI.