Use another library, there must be dozens. I work with the Zend Framework which contains one (and since it’s loosely coupled, you can use it on its own), but I just realized it requires PHP 5.something (perhaps it might work, but I don’t think so). Googling should turn up a suitable result (“I checked out a few of the API kits suggested on Flickr but two use PEAR and the other requires PHP5”) though.