PHP Classes

Simple Twitter: Retrieve user status from Twitter

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 67%Total: 1,914 All time: 2,054 This week: 292Up
Version License PHP version Categories
simpletwitter 1.1GNU General Publi...5.0HTML, PHP 5, Web services, Social Net...
Description Author

This class can be used to retrieve the statuses of Twitter users.

It can send HTTP requests to Twitter Web services API to perform several types of operations.

The class can retrieve the time line of statuses of a given Twitter user, the public time line, the statuses of the friends of a given user, the relationship between two Twitter users, search for statuses with a given text, and information about a given user.

The class can also convert URLs in the retrieved statuses into HTML links.

Picture of Toma× Muraus
Name: Toma× Muraus <contact>
Classes: 5 packages by
Country: Slovenia Slovenia
Age: ???
All time rank: 13385 in Slovenia Slovenia
Week rank: 592 Up4 in Slovenia Slovenia Up




  1. About
  2. Description
  3. System requirements
  4. Usage


  (1) ABOUT

    VERSION: 1.0
    AUTHOR: Toma┼ż Muraus <kami[at]k5-storitve[dot]net>

    SimpleTwitter is a simple PHP script for retrieving your twitter
    status messages and some other functionality.
    None of the actions in this class require user authentication.


    - PHP >= 5.0.0
    - 1 MB of free disk space

  (4) USAGE

    1. Include a file SimpleTwitter.php in your PHP script
    2. Create a SimpleTwitter object - first parameter is your
    twitter username.
    3. The following methods are available:
    getMyTimeline($limit = 10, $formatLinks = TRUE)			-> returns $limit latest status messages for your account
    getPublicTimeline($limit = 10, $formatLinks = TRUE)		-> returns $limit status messages from the public time line
    getFriendsStatus($formatLinks = TRUE)					-> returns status messages from your friends
    getUserRelationship($targetScreenname)					-> returns relationship information between your and given user account
    findTwitts($query, $formatLinks = TRUE)					-> returns status messages matching the search query
    getUserInformation()									-> returns information about your twitter account
	Example is located in file SimpleTwitter.example.php.
  • sample_output.jpg
  Files folder image Files  
File Role Description
Plain text file SimpleTwitter.php Class Main class
Plain text file SimpleTwitter.example.php Example Usage example
Plain text file README Doc. Readme
Plain text file LICENSE Lic. License

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,054
This week:292Up
User Ratings User Comments (3)
 All time
9 years ago (Ashok kumar kashyap)
some methods are not working including : getFriendsStatus
10 years ago (dhanesh mane)
I wasn't sure at first how to access the elements within the ...
13 years ago (Steve)
For more information send a message to info at phpclasses dot org.