Elliot Haughin

I'm a freelance web developer.
I build clever, engaging, ass-kicking,
web applications. You want me?
Posted: Mar 3rd

Twitter is quickly becoming one of the fastest communication networks around. So why should we leave our beautiful CodeIgniter Applications out of such a great think?

Well, now we don’t have to! Here it is, a new, shiny version of the Twitter CodeIgniter Library.
Previously, the library was only able to parse someone’s Tweets via RSS. However! Fear not! For I have built a full-blown Twitter API solution for you!

Requirements: curl, json_decode

So, this is how it’s installed.
Drag and drop Twitter.php and Connection.php into your libraries. Done.

Now time to use it:

$this->load->library('twitter');
$this->twitter->auth('username', 'password');
$this->twitter->call('statuses', 'update', array('status' => 'Thanks to @elliothaughin for this CodeIgniter Twitter API Library!'));

That’s it, you’re done!

For plenty more examples of how it’s used, and to download head over to the code page now:

CodeIgniter Twitter API Library

Related Posts

  1. CodeIgniter Vimeo API Library Released
  2. CodeIgniter Twitter Library
  3. Twitter CodeIgniter Library gets oAuth Love!
  4. Fresh Batch of CodeIgniter Libraries Out Now!
  5. New CodeIgniter Library: Facebook Connect

Comments

  1. jeremy says:

    you’re awesome elliot!

  2. Garrett says:

    Totally awesome. Guaranteed to use this very soon. I’ll drop a line when I have something together.

  3. officehax says:

    nice. may be using this soon

  4. Noah Stokes says:

    Great stuff Elliott. I wonder how it compares to Simon’s library:
    http://github.com/simonmaddox/codeigniter-twitter/tree/master

    I’m currently using that one, but will try yours out as well.

    Thx!

  5. josh giese says:

    Thanks for posting this. Its going to be a big help with my next project

  6. I’ve used this in a few of my projects already. Works wonderfully!

    There is one bug that I found. In the version I have, there is whitespace before the opening <?php in the library class which causes premature output in the browser. Other than that, it’s great!

  7. [...] Twitter API for CodeIgniter [...]

  8. Christian Andrade says:

    You have any method to publish an image in twitter like: http://yfrog.com

    I’m going to try your library, thanks for it.

  9. Excellent! You are a gift to the CodeIgniter community Elliot.

Leave a Comment

© Copyright 2010 Elliot Haughin