Uses the excellent pearhub by Troels Knak-Nielsen:
sudo pear channel-discover pearhub.org sudo pear install pearhub/Chano
http://www.pearhub.org/projects/Chano/releases
git clone git://github.com/runekaagaard/php-chano.git
Simply go:
require 'chano/Chano.php';