PHPackages                             micmania1/sstwitter - 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. micmania1/sstwitter

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

micmania1/sstwitter
===================

A silverstripe module to integrate Silverstripe with Twitter

1.1.4(12y ago)9925[2 issues](https://github.com/micmania1/sstwitter/issues)[6 PRs](https://github.com/micmania1/sstwitter/pulls)PHP

Since Mar 24Pushed 10y ago2 watchersCompare

[ Source](https://github.com/micmania1/sstwitter)[ Packagist](https://packagist.org/packages/micmania1/sstwitter)[ RSS](/packages/micmania1-sstwitter/feed)WikiDiscussions 1.1 Synced yesterday

READMEChangelogDependenciesVersions (8)Used By (0)

SSTwitter
=========

[](#sstwitter)

SSTwitter is a Silverstripe module to allow simple integration between Twitter &amp; Silverstripe.

Features
--------

[](#features)

- CMS interface to integrate Silverstripe with a Twitter application &amp; connect an account to the website.
- Connect/Disconnect Member's to Twitter accounts.
- Enable/Disable Twitter login through the CMS.
- Developer Access to Twitter API through [PHPTwitter](http://www.github.com/micmania1/phptwitter).

Usage
-----

[](#usage)

**$TwitterConnectURL** (TwitterApp::connect\_url()) This displays a link where a logged in user will be taken through the Twitter authentication process to connect their Twitter account.

**$TwitterDisconnectURL** (TwitterApp::disconnect\_url()) This will disassociate the Twitter account from the Member.

**$TwitterLoginURL** (TwitterApp::login\_url()) This will return a url whereby the user can login to their Silverstripe account through Twitter where previously connected.

```
Connect
Disconnect

	Login

	Twitter Login is disabled.

```

Extending
---------

[](#extending)

SSTwitter uses [PHPTwitter](http://www.github.com/micmania1/phptwitter) for its Twitter Authentication which has a central Twitter-&gt;api() method which handles all API requests. This means you can easily harness its power to interact directly with Twitter. Below is an example of how you would get the latest tweets for the account connected to your website.

In Page\_Controller.php:

```
public function LatestTweets($count = 3) {

	$tweets = new ArrayList();

    $twitterApp = TwitterApp::get()->first();
	$twitter = $twitterApp->getTwitter(); // Access the PHPTwitter interface
	$twitter->setAccess(new OauthToken($twitterApp->TwitterAccessToken, $twitterApp->TwitterAccessSecret));

	// Get the latest Tweets
	if($twitter->hasAccess()) {
	    $result = $twitter->api("1.1/statuses/user_timeline.json", "GET", array(
	        "screen_name" => $twitterApp->TwitterScreenName,
	        "count" => (int) $count
	    ));

	    if($result->statusCode() == 200) {
	    	$json = json_decode($result->body(), true);
	    	if(count($json) > 0) {
	    		foreach($json as $tweet) {
	    			$tweets->push(ArrayData::create(array(
	    				"Tweet" => $tweet['text'],
	    				"Created" => $tweet['created_at'],
	    				"Link" => "http://www.twitter.com/".rawurlencode($tweet['user']['screen_name'])."/status/".rawurlencode($tweet['id_str'])
	    			)));
	    		}
	    	}
	    }
	}
	return $tweets;
}

```

In Page.ss

```

			$Tweet - $Created

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 93.1% 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 ~78 days

Recently: every ~115 days

Total

7

Last Release

4378d ago

### Community

Maintainers

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

---

Top Contributors

[![micmania1](https://avatars.githubusercontent.com/u/881537?v=4)](https://github.com/micmania1 "micmania1 (27 commits)")[![LefterS](https://avatars.githubusercontent.com/u/36990082?v=4)](https://github.com/LefterS "LefterS (2 commits)")

### Embed Badge

![Health badge](/badges/micmania1-sstwitter/health.svg)

```
[![Health](https://phpackages.com/badges/micmania1-sstwitter/health.svg)](https://phpackages.com/packages/micmania1-sstwitter)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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