Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Twitter component for CakePHP

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

After searching for a suitable php Twitter component for cakephp I found none. So here is my attemp at it. 
This component implenets all of the twitter api found on

	    class TweetsController extends AppController
	        var $name = 'Tweets';
	        var $helpers = array('Time', 'Html');
	        var $components = array('Twitter');        
	        var $uses = array();
	        function index()
	            $this->Twitter->username = Configure::read('Twitter.username');
	            $this->Twitter->password = Configure::read('Twitter.password');
	            $statuses = $this->Twitter->status_user_timeline(
	                            Configure::read('Twitter.username') ,
	                            array('count' => 10)
	            if(array_key_exists('statuses', $statuses))
	                $this->set('tweets', $statuses['statuses']['status']);                
Something went wrong with that request. Please try again.