PHPackages                             widop/twitter-rest - 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. widop/twitter-rest

ActiveLibrary[API Development](/categories/api)

widop/twitter-rest
==================

Twitter REST API for PHP 5.3+

241.1k7PHP

Since Feb 7Pushed 12y ago8 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/51a98e01c8edc8d5d83efd9ee4eef1f35651e276c9136fe8886676b7795f0ff5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7769646f702f747769747465722d726573742e706e67)](http://travis-ci.org/widop/twitter-rest)

The Wid'op Twitter REST library is a modern PHP 5.3+ API allowing you to easily interact with Twitter 1.1. In order to sign your request with the OAuth protocol, the library internally uses the [`widop/twitter-oauth`](https://github.com/widop/twitter-oauth).

```
use Widop\HttpAdapter\CurlHttpAdapter;
use Widop\Twitter\OAuth;
use Widop\Twitter\Rest\Statuses\StatusesUpdateRequest;
use Widop\Twitter\Rest\Twitter;

// First, instantiate your OAuth client.
$oauth = new OAuth\OAuth(
    new CurlHttpAdapter(),
    new OAuth\OAuthConsumer('consumer_key', 'consumer_secret'),
    new OAuth\Signature\OAuthHmacSha1Signature()
);

// Second, instantiate your OAuth access token.
$token = new OAuth\OAuthToken('oauth_key', 'oauth_secret');

// Third, instantiate your Twitter client.
$twitter = new Twitter($oauth, $token);

// Then, send a request to the Twitter API!
$request = new StatusesUpdateRequest('Yeah, I\'m currently updating my status!')
$tweet = $twitter->send($request)->getData();
```

Documentation
-------------

[](#documentation)

1. [Installation](doc/installation.md)
2. [Twitter](doc/twitter.md)

Testing
-------

[](#testing)

The library is fully unit tested by [PHPUnit](http://www.phpunit.de/) with a code coverage close to **100%**. To execute the test suite, check the travis [configuration](.travis.yml).

Contribute
----------

[](#contribute)

We love contributors! The library is open source, if you'd like to contribute, feel free to propose a PR!

License
-------

[](#license)

The Wid'op Twitter REST library is under the MIT license. For the full copyright and license information, please read the [LICENSE](LICENSE) file that was distributed with this source code.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.8% 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/576c506dd59d942ffd6409f67d59b9e2ad17f73376fa9e404351a3167953a762?d=identicon)[widop](/maintainers/widop)

---

Top Contributors

[![GeLoLabs](https://avatars.githubusercontent.com/u/149005863?v=4)](https://github.com/GeLoLabs "GeLoLabs (61 commits)")[![ClementDuez](https://avatars.githubusercontent.com/u/1939684?v=4)](https://github.com/ClementDuez "ClementDuez (1 commits)")[![tacone](https://avatars.githubusercontent.com/u/659801?v=4)](https://github.com/tacone "tacone (1 commits)")

### Embed Badge

![Health badge](/badges/widop-twitter-rest/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M18](/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

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

PHPackages © 2026

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