🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Get Tweets in PHP icon
Possibly abandoned Tested up to 4.7.40 #4 in developers

Get Tweets in PHP

This plugin will add the PHP class GetTweetsInPhp. You can use this class as described below for retrieving latest tweets from a Twitter account, then handle the tweets as you want in your PHP code.

Active installs40+10+ tier
Downloads · 30d104▲ +57.6% vs prev. 30d
Rating5/52 reviews
Health score31/100At risk
All-time downloads3.5KSince Aug 2015
Support resolved—No recent threads
RequiresWP 4.0PHP any
Downloads · 7d33▲ +94.1% week over week
Our verdict

Consider an alternative

Get Tweets in PHP shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites, is rated 5/5 and was last updated 10 years ago, and scores 31/100 on our health check.

  • Small user base (40+ active installs)
  • Very few reviews so far
  • No update in 9 years
  • Only tested up to WordPress 4.7 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

369Sep 4Oct 18Dec 2
Yesterday13
Daily average (1y)2
Peak day13Dec 2, 2026
Last 12 months566

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Get Tweets in PHP stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
developers >100 10,000 Best developers plugins →
latest tweets >100 188 Best latest tweets plugins →
tweet >100 696 Best tweet plugins →
tweets >100 696 Best tweets plugins →
twitter >100 3,964 Best twitter plugins →

Version adoption

Share of active sites per release.

  • 1.2100.0%

Rating breakdown

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Get Tweets in PHP

From the official readme · v1.2

Description

This plugin will add the PHP class GetTweetsInPhp. You can use this class as described below for retrieving latest tweets from a Twitter account, then handle the tweets as you want in your PHP code.

Note: you should create a Twitter app before using this plugin. You can do it from here: http://apps.twitter.com.

Features

  • Get latest N tweets from a Twitter account.
  • Get the tweet’s text formatted as HTML (with links for each entities).
  • Cache support.
  • Made for developers.
  • Really light and simple.
  • Works with the v1.1 Twitter API.
  • Trivial install/uninstall (only add/remove the plugin’s files).
  • No any data will be permanently stored in your database (only transient data
    if the cache is enabled).
  • Proudly coded by Netgloo.

Example usage

Get and show latest tweets from @netglooweb:

// Set configurations
$configs = [
  // Set here tokens from your Twitter's app
  'consumer_key' => 'CONSUMER_KEY', 
  'consumer_secret' => 'CONSUMER_SECRET',

  // The Twitter account name
  'screen_name' => 'netglooweb',

  // The number of tweets
  'count' => 5,
];

// Get latest tweets using the function get_tweets
$tweets = \Netgloo\GetTweetsInPhp::get_tweets($configs);

// ...

// For each tweet show the HTML text and the attached image
foreach ($tweets as $tweet) {

  echo "<p>";
  echo $tweet->n_html_text;

  if ($tweet->n_has_media_photo) {
    echo "<img src='{$tweet->n_media_photo_url}' width='100%' />";
  }

  echo "</p>";

}

// ...

That’s all! Have fun!

Configurations

The get_tweets() function takes an array of configurations:

$configs = [

  // --- Required ---

  // The tokens from your Twitter's app
  'consumer_key' => '...',
  'consumer_secret' => '...',

  // The Twitter account name
  'screen_name' => '...',


  // --- Optional ---

  // The number of tweets
  'count' => 20,

  // Include also the retweets
  'include_rts' => true,

  // In the HTML text will be showed "Retweeted by ..." if the tweet
  // is a retweet
  'show_retweeted_by' => true,

  // Enable the cache
  // It is recommended to activate the cache, when you put live 
  // your website, in order to avoid to reach the Twitter's api rate
  // limit of 300 requests / 15-min.
  'cache_enabled' => false,

  // Cache expiration (in seconds)
  // Increase the value to optimize the website's speed, decrease
  // the value if you want a more real-time behaviour (but not
  // less than 4 seconds to avoid to reach the rate limit).
  'cache_expiration' => 60,

  // Templates

  // Retweeted by text template
  'retweeted_by_template' => 
    '<em> Retweeted by {{user_name}}</em>',

  // Hash tag link template
  'hashtag_link_template' => 
    '<a href="{{hashtag_link}}" rel="nofollow" target="_blank">' .
    '#{{hashtag_text}}</a>',

  // Url link template
  'url_link_template' => 
    '<a href="{{url_link}}" rel="nofollow" target="_blank" ' .
    'title="{{url_title}}">{{url_text}}</a>',

  // User mention link template
  'user_mention_link_template' => 
    '<a href="{{user_mention_link}}" rel="nofollow" target="_blank" ' .
    'title="{{user_mention_title}}">@{{user_mention_text}}</a>',

  // Media link template
  'media_link_template' => 
    '<a href="{{media_link}}" rel="nofollow" target="_blank" ' .
    'title="{{media_title}}">{{media_text}}</a>'

];

$tweets = \Netgloo\GetTweetsInPhp::get_tweets($configs);

Returned values

The get_tweets() function will return an Array of tweets. On each tweet object are available these properties:

  • n_html_text (String) The tweet text formatted as HTML, with links on each entities.
  • n_is_retweeted (Boolean) True if the curret tweet is a retweet.
  • n_has_media_photo (Boolean) True if the current tweet has an attached photo.
  • n_media_photo_url (String) The url of the tweet’s attached photo.
  • n_media_photo_urls (Array) If the tweet has more than one attached photos this properties contains all the urls.

Other available properties are those returned from the user_timeline Twitter’s API.
These are some useful ones:

  • created_at
  • retweet_count
  • user->name
  • user->screen_name
  • user->profile_image_url

If the properties n_is_retweeted is true the current tweet is a “re-tweet” and the retweeted_status object is available:

  • retweeted_status->user->name
  • retweeted_status->user->screen_name
  • retweeted_status->retweet_count

Example

This code use some of the above properties:

// ...

$tweets = \Netgloo\GetTweetsInPhp::get_tweets($configs);

foreach ($tweets as $tweet) {
  echo $tweet->created_at . "<br/>";
  echo $tweet->n_html_text . "<br/>";
  if ($tweet->n_has_media_photo) {
    echo $tweet->n_media_photo_url  . "<br/>";
  }
}

// ...

Limitations

Since we rely on the Twitter’s user_timeline API, you should read the following docs for taking in account any API’s limitation:

  • https://dev.twitter.com/rest/reference/get/statuses/user_timeline
  • https://dev.twitter.com/rest/public/timelines

Contributing

For patches, bug reports, suggestions, requests for features there is a Git repository on GitHub here:
https://github.com/netgloo/get-tweets-in-php

Installation

Requirements

To work this plugin, following component need to be installed in your server.

  • PHP version 5.3 or higher
  • cURL
  • WordPress 4.2.2 or higher

Install

Put the plugin to your WordPress’ plugins folder and activate it from the Admin Backend.

Uninstall

Just delete the plugin from WordPress.

Changelog

1.2

  • Custom HTML templates for links and “retweeted by” text.
  • New hashtag link: https://twitter.com/hashtag.
  • Get media urls with https.
  • Cache disabled by default (as in the documentation).

1.1

  • Bug fix setting transient cache name.

1.0

  • First release.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Get Tweets in PHP alternatives

All developers plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Hide products count Hide products count Hide products count in category view in WooCommerce by Joan Boluda 300+ ★★★★★★★★★★ 4.3 (6) 10 years ago 35
2 WP Utility Script Runner WP Utility Script Runner Create custom scripts and manage them directly from the WordPress Dashboard. Schedule… by Bytes.co 70+ ★★★★★★★★★★ 5 (1) 8 years ago 32
3 Admin Page Framework Admin Page Framework Facilitates WordPress plugin and theme development. by miunosoft 70+ ★★★★★★★★★★ 5 (23) 5 years ago 42
5 Simple Pictures Slider Simple Pictures Slider A simple plugin to display a picture slider. Light, efficient and compatible with ACF. Best… by Tom Baumgarten 40+ ★★★★★★★★★★ No reviews 2 years ago 24
6 Back End Instructions Back End Instructions Plugin for WordPress developers to provide easy "how to use" instructions to their clients. by Doodlebee 30+ ★★★★★★★★★★ 3.8 (9) 13 years ago 31
7 Error Logs Emailer for WooCommerce Error Logs Emailer for WooCommerce Sends the previous day's WooCommerce fatal error log to specified email(s) using Action… by Michal Slepko 20+ ★★★★★★★★★★ 5 (1) 11 months ago 46
8 CC Devs CC Devs Adds the ability to easily CC developers on all admin emails by John Hawkins 10+ ★★★★★★★★★★ 5 (3) 4 years ago 30
9 WP Country Class In Body Tag WP Country Class In Body Tag This plugin is developed to add visitor's country class on the body tag of the page to use… by kashanshah 10+ ★★★★★★★★★★ No reviews 9 years ago 23
10 Minimal Shortcode UI Minimal Shortcode UI Allows theme/plugin developers to make their custom shortcodes easily accessible to their… by Max 10+ ★★★★★★★★★★ No reviews 11 years ago 23
11 Fonk – Slack Notifications for Devs Fonk – Slack Notifications for Devs Send Slack notifications from anywhere in your theme to a Slack workspace and channel of… by Fonk Cape Town 10+ ★★★★★★★★★★ No reviews 6 years ago 23

FAQ

Get Tweets in PHP: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Get Tweets in PHP free?

Yes. Get Tweets in PHP is free to download and use from the official WordPress.org plugin directory.

Is Get Tweets in PHP safe to use in 2026?

Get Tweets in PHP shows warning signs in 2026 — compare the alternatives below before installing. It runs on 40+ sites, is rated 5/5 and was last updated 10 years ago, and scores 31/100 on our health check.

How many websites use Get Tweets in PHP?

Get Tweets in PHP is active on 40+ WordPress websites and has been downloaded 3,508 times since it launched in August 2015. It was downloaded 104 times in the last 30 days.

Does Get Tweets in PHP work with WordPress 7.1?

Get Tweets in PHP is officially tested up to WordPress 4.7.40, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Get Tweets in PHP last updated?

The latest version, 1.2, was released on December 28, 2016 (10 years ago).

Who makes Get Tweets in PHP?

Get Tweets in PHP is developed and maintained by azanelli.

What are the best alternatives to Get Tweets in PHP?

The most popular alternatives to Get Tweets in PHP are Hide products count (300+ installs), WP Utility Script Runner (70+ installs) and Admin Page Framework (70+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open