This weekend, I spent sometime toying around with the Google URL Shortener API.

I wrote a small demo application you can browse and fork via GitHub. It’s by no means complete, but shows the basic shorten and expand operations.

You’ll need a Google API key, a basic LAMP installation and basic familiarity with PHP’s cURL library.