BotanIRC is a Bot for IRC, written in PHP5. You can add functionality via plugins. It's under Creative Commons License
The PHP:IRC suite allows you to run an IRC applet on your site, an IRC "bot" similar to eggdrop, and to administer them as well as CGI:IRC. PHP:IRC is compatible with CGI:IRC, phpBB, YaBB, and other communities.