PHPackages                             atomicsmash/twitter-feed-wordpress - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. atomicsmash/twitter-feed-wordpress

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

atomicsmash/twitter-feed-wordpress
==================================

Atomic Smash - Twitter Feed for WordPress

0.2.1(5y ago)11.8k1[1 issues](https://github.com/AtomicSmash/twitter-feed-wordpress/issues)PHP

Since Feb 20Pushed 5y ago3 watchersCompare

[ Source](https://github.com/AtomicSmash/twitter-feed-wordpress)[ Packagist](https://packagist.org/packages/atomicsmash/twitter-feed-wordpress)[ Docs](http://www.atomicsmash.co.uk/)[ RSS](/packages/atomicsmash-twitter-feed-wordpress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (9)Used By (0)

Twitter feed for WordPress
==========================

[](#twitter-feed-for-wordpress)

Installation
------------

[](#installation)

To make the class available, please add the following to your composer file:

```
"atomicsmash/twitter-feed-wordpress" : "*",
```

Next, create a twitter app and generate your API access keys [here](https://apps.twitter.com/).

Then add these inside your environment specific constants to your wp-config file, filling in the values as appropriate:

```
define('TWITTER_CONSUMER_KEY','');
define('TWITTER_CONSUMER_SECRET','');
define('TWITTER_OAUTH_TOKEN','');
define('TWITTER_OAUTH_TOKEN_SECRET','');
```

At the current time you can only have one twitter feed per site however this may be changed in the future.

Pulling Tweets from a Specific User
-----------------------------------

[](#pulling-tweets-from-a-specific-user)

Just add a constant specifying the username:

```
define('TWITTER_USERNAME','');
```

Don't worry about adding the '@' symbol. For example `define('TWITTER_USERNAME','atomicsmash')`

Using feed in theme
-------------------

[](#using-feed-in-theme)

You can query the cached tweets simply by calling the `get` method of the twitterAPI class:

```
if( isset( $twitterAPI ) ){

	$tweets = $twitterAPI->get([
		'results_per_page'	=> 4, 		// int
		'order'			=> 'asc',	// 'asc|desc'
		'tweet_type'		=> 'all'	// 'all|tweet|retweet|reply'
	]);

}
```

ParameterTypeDescription`results_per_page`intThe number of results to show per page`order`string`desc` for newest first, `asc` for oldest`tweet_type`stringOne of `all`, `tweet`, `retweet` or `reply`. What kind of tweets should be returned.Background syncing
------------------

[](#background-syncing)

To sync tweets in background, schedule a cron job to run the command:

```
wp twitter sync_tweets
```

If you are using composer in your project, then your WordPress core files might be inside a subfolder. Please modify the path to reflect this. The cron job might look like this:

```
/usr/local/bin/wp twitter sync_tweets --path=/path/to/www.website.co.uk/wp
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~122 days

Total

7

Last Release

2125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ece800089b8d593741a22cab40028b7d5119a3b5e89d86d913a829251562e10?d=identicon)[atomicsmash](/maintainers/atomicsmash)

---

Top Contributors

[![daviddarke](https://avatars.githubusercontent.com/u/1636310?v=4)](https://github.com/daviddarke "daviddarke (18 commits)")[![clvarley](https://avatars.githubusercontent.com/u/46519531?v=4)](https://github.com/clvarley "clvarley (4 commits)")[![steve-brett](https://avatars.githubusercontent.com/u/10950111?v=4)](https://github.com/steve-brett "steve-brett (2 commits)")

---

Tags

pluginwordpresstwitterapis

### Embed Badge

![Health badge](/badges/atomicsmash-twitter-feed-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/atomicsmash-twitter-feed-wordpress/health.svg)](https://phpackages.com/packages/atomicsmash-twitter-feed-wordpress)
```

###  Alternatives

[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
