Php-bitly is a project mainly written in PHP, it's free.
A class for accessing and interacting with the bit.ly API.