PHP Classes

twitterlibphp: Manipulate a Twitter user account

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,172 All time: 3,216 This week: 794Up
Version License PHP version Categories
twitterlibphp 1.0GNU General Publi...4PHP 5, Web services, Social Networking
Description Author

This class can be used to manipulate a Twitter user account.

It can access the Twitter API Web site and execute several types of operations to manipulate an account of a given Twitter user. It can:

- Get the user's and his friends public time line
- Retrieve, update or delete the user status
- Get the status of friends, followers and users featured on the site
- Retrieve information of a given user
- Get the list of messages sent by the user
- Send a new message to an user
- Delete messages
- Establish or end friendship with another user
- Verify user credentials
- End an user access session
- Retrieve archived status of the user
- Create, retrieve and delete favorites user status

Picture of Justin Poliey
Name: Justin Poliey <contact>
Classes: 1 package by
Country: United States United States
Age: 34
All time rank: 2140297 in United States United States
Week rank: 515 Up55 in United States United States Up

Twitter interface class
Justin Poliey <>
First release Nov 26 2007
Newest release Aug 14 2008

This is a simple interface to the Twitter API.

I've tried to keep as close as possible to the real API
calls (some had to be changed due to ambiguity), but all
of the arguments are as they are in the official docs.

For documentation, check the project wiki:

 $twitter = new Twitter("username", "password");
 $public_timeline_xml = $twitter->getPublicTimeline("xml");
 getPublicTimeline($format [, $since_id])
 getFriendsTimeline($format [, $id [, $since ]])
 getUserTimeline($format [, $id [, $count [, $since ]]])
 showStatus($format, $id)
 destroyStatus($format, $id)
 getReplies($format [, $page ])
 getFriends($format [, $id ])
 getFollowers($format [, $lite ])
 showUser($format [, $id [, $email ]])
 getMessages($format [, $since [, $since_id [, $page ]]])
 getSentMessages($format [, $since [, $since_id [, $page ]]])
 newMessage($format, $user, $text)
 destroyMessage($format, $id)
 createFriendship($format, $id)
 destroyFriendship($format, $id)
 friendshipExists($format, $user_a, $user_b)
 updateLocation($format, $location)
 updateDeliveryDevice($format, $device)
 getArchive($format [, $page ])
 getFavorites($format [, $id [, $page ]])
 createFavorite($format, $id)
 destroyFavorite($format, $id)
 follow($format, $id)
 leave($format, $id)
 createBlock($format, $id)
 destroyBlock($format, $id)
  Files folder image Files  
File Role Description
Accessible without login Plain text file license.txt Lic. MIT License
Accessible without login Plain text file readme.txt Doc. Readme
Plain text file twitter.lib.php Class twitterlibphp class implementation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,216
This week:794Up
For more information send a message to info at phpclasses dot org.