I’ve posted the code for an Ajax chat plugin for CakePHP at the SiteAMonth Sandbox. It’s really pretty basic, but works well enough and can be styled using CSS.

A couple of thoughts for improving it:
1) Some sort of spam protection.
2) When the user posts a message there is a moment before it shows up in the chat window that may be confusing.
3) New messages show up at the top. I think users are more accustomed to seeing new chat messages at the bottom. It is easy to switch, but javascript will have to be used to auto-scroll to the bottom.

If you have any questions, comments or bugs please leave a comment.

Popularity: 16% [?]