»

Shortie v1.0 Released

Tags: , , ,
Posted in Code, CodeIgniter, PHP, Uncategorized

Recently I needed code to shorten URLS and tweet said url as a twitter update. This all needed to happen in their existing CMS built using Codeigniter.

Turns out the twitter part was easy, thanks to simonmaddox’s nice twitter CI library. I got a few whiffs of a url shortening CI library around the web, but it looks like the code was no longer available. Oh well, a good excuse to knock up a new library!

Shortie is a simple library that uses curl to generate short urls using a number of different services. At the moment I have added support for four services:

  • tr.im
  • tinyurl
  • is.gd
  • u.nu

Check out the user guide, which was created using an app-in-progress Dokument, for examples.

More about Dokument later…

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply