Tom Morton is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

errant / ktwitter http://errant.me.uk/ktwitter/

Kohana Twitter Library Supports Oauth login etc.

Clone this repository (size: 66.5 KB): HTTPS / SSH
hg clone https://bitbucket.org/errant/ktwitter
hg clone ssh://hg@bitbucket.org/errant/ktwitter

ktwitter overview

Recent commits See more »

Author Revision Comments Message Labels Date
Tom Morton a961c43eddae Added tag 1.1.2 for changeset de0ec60a0ad2
Tom Morton de0ec60a0ad2 adding examples placeholder, fixing links etc.
Tag
1.1.2
Tom Morton 227c4366b193 ref #4
Tom Morton fa4c05fb7531 Added tag 1.1.1 for changeset ab04ec6ae868
Tom Morton ab04ec6ae868 Fix an API error in the cookie handling part of Twitter_User_Model
Tag
1.1.1
Kohana Twitter Module

This module aims to create twittwe oauth support under Kohana.

I needed it for one of my projects so I figured it was best to
pull it out and release it for others to work with.

The existing Kohana Twitter module is very nice - but still
uses just Basic Auth. I needed OAuth and so required a rebuild.

On top of the basics of the library I have built a method to
store access keys - so this is completely usable as an login
method for your websites.

1. License

My code is free to use with no warranty.
Please bear in minde the OAuth code is from the FireEagle project
and BSD licensed (http://github.com/myelin/fireeagle-php-lib/).

This package is based around the TwitterOauth example by
Abraham (http://github.com/abraham/twitteroauth).

2. Usage

Simples. Check out the demo controller for examples of how to
do the login (hint: it really is stupidly easy)

To get started you need a consumer key/secret from twitter.

Go here: http://twitter.com/oauth_clients

Register your client (use return url of <youurlhere>/twitter_demo/complete)
and pop the keys into config/twitter.php

Then everything should work as is. Visit twitter_demo/login to
see it work :D