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:




you’re awesome elliot!
Totally awesome. Guaranteed to use this very soon. I’ll drop a line when I have something together.
nice. may be using this soon
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!
Thanks for posting this. Its going to be a big help with my next project
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!
[...] Twitter API for CodeIgniter [...]
You have any method to publish an image in twitter like: http://yfrog.com
I’m going to try your library, thanks for it.
Excellent! You are a gift to the CodeIgniter community Elliot.