PHPackages                             purplespider/twitter-feed - 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. [API Development](/categories/api)
4. /
5. purplespider/twitter-feed

ActiveSilverstripe-module[API Development](/categories/api)

purplespider/twitter-feed
=========================

Inserts a custom styled Twitter feed on any SilverStripe page, uses Twitter API v1.1

21201PHP

Since Nov 16Pushed 4y ago3 watchersCompare

[ Source](https://github.com/purplespider/silverstripe-twitter-feed)[ Packagist](https://packagist.org/packages/purplespider/twitter-feed)[ RSS](/packages/purplespider-twitter-feed/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twitter Feed Module
===================

[](#twitter-feed-module)

Introduction
------------

[](#introduction)

Allows you to add a custom styled Twitter feed to any page on your SilverStripe website.

The module uses the new Twitter v1.1 API to grab a specified number of tweets from a specified user, allowing you to output them to custom HTML in a template.

Maintainer Contact
------------------

[](#maintainer-contact)

- James Cocker ()

Requirements
------------

[](#requirements)

- Silverstripe 3.1+

Installation Instructions
-------------------------

[](#installation-instructions)

1. Add the twitter-feed directory to the root of your SS install.
2. Go to  and **Create a new application**. Then click **Create my access token**, you'll then have a key, a token, and a secret for each.
3. Add the following lines to your \_config.php:

    ```
     // Allows you to have a Twitter feed on any page.
     Object::add_extension('Page', 'TwitterFeed');

     // Fill in the following from your Twitter Application:
     TwitterFeed::set_consumer_key('XXXXX');
     TwitterFeed::set_consumer_secret('XXXXX');
     TwitterFeed::set_user_token('XXXXX');
     TwitterFeed::set_user_secret('XXXXX');

     TwitterFeed::set_username('twitter'); // The Twitter username to get the feed from
     TwitterFeed::set_tweetcount('4'); // The max number of tweets to display

    ```
4. Use the included TwitterFeed.ss as an example for creating your HTML for the template. **Important: This basic example is designed to be used as a starting point, and does not meet Twitter's new strict Developer Display Requirements:  Please make sure the way you display the Twitter feed meets these requirments or your Twitter app may be banned.**

Acknowledgments
---------------

[](#acknowledgments)

Thanks to **Matt Bailey's SilverStripe Widget**: [https://github.com/matt-bailey/](https://github.com/matt-bailey/silverstripe-widget-latesttweets)

And **Matt Harris's Twitter OAuth Library**:

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/adc769752595fb9b61ae35f2d1a6cad4da9845a7a536fb725d93e6d9ebc4d594?d=identicon)[purplespider](/maintainers/purplespider)

---

Top Contributors

[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (8 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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