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

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

endroid/twitter
===============

Endroid Twitter

2.1.0(7y ago)32206.3k↓32.8%111MITPHPPHP &gt;=7.1

Since Dec 1Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (28)Used By (1)

Twitter
=======

[](#twitter)

*By [endroid](http://endroid.nl/)*

[![Latest Stable Version](https://camo.githubusercontent.com/86c443ac1b305dab283985cc295fcd18726d738962cdc6d550c3038f13043e17/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64726f69642f747769747465722e737667)](https://packagist.org/packages/endroid/twitter)[![Build Status](https://camo.githubusercontent.com/08d46b6e92791419aaa854da39568e5bcb752f1e7fe0718360a6d066522c8360/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656e64726f69642f747769747465722e706e67)](http://travis-ci.org/endroid/twitter)[![Total Downloads](https://camo.githubusercontent.com/cdeea145998b8bc0802a6fdf4babea1b10be01fdb1946ea8f35e0577b64c42d9/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e64726f69642f747769747465722e737667)](https://packagist.org/packages/endroid/twitter)[![Monthly Downloads](https://camo.githubusercontent.com/2643e0f1f633b35796c16f548428a4d032c1b39192705c3f51fc6490c4a7a598/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f656e64726f69642f747769747465722e737667)](https://packagist.org/packages/endroid/twitter)[![License](https://camo.githubusercontent.com/8a189e3061c94afc35e5c782b11c6a962aa0fb6466144d40c3a59bfb1072fc0f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64726f69642f747769747465722e737667)](https://packagist.org/packages/endroid/twitter)

This library helps making requests to the Twitter API. The only things you need are the keys which you can find in the [developer console](https://dev.twitter.com/).

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require endroid/twitter
```

Get consumer access key and token from Twitter
----------------------------------------------

[](#get-consumer-access-key-and-token-from-twitter)

Register your application at

Usage
-----

[](#usage)

```
use Abraham\TwitterOAuth\TwitterOAuth;
use Endroid\Twitter\Client;

$twitterOAuth = new TwitterOAuth($consumerKey, $consumerSecret);
$client = new Client($twitterOAuth);

// Retrieve the last 50 items in the user's timeline
$tweets = $client->getTimeline(50);

// Or post a status message (with optional media)
$client->postStatus('Hello, this is my new status', ['/tmp/image1.png', '/tmp/image2.png']);
```

Versioning
----------

[](#versioning)

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 88.7% 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 ~92 days

Recently: every ~112 days

Total

26

Last Release

2607d ago

Major Versions

1.x-dev → 2.0.02018-01-02

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

1.3.0PHP &gt;=5.4

2.0.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (63 commits)")[![jakeuncles](https://avatars.githubusercontent.com/u/180014950?v=4)](https://github.com/jakeuncles "jakeuncles (6 commits)")[![laurent-bientz](https://avatars.githubusercontent.com/u/6093572?v=4)](https://github.com/laurent-bientz "laurent-bientz (1 commits)")[![tborealis](https://avatars.githubusercontent.com/u/1591228?v=4)](https://github.com/tborealis "tborealis (1 commits)")

---

Tags

phpsymfonybundleendroidtwitter

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[endroid/qr-code-bundle

Endroid QR Code Bundle

32110.6M17](/packages/endroid-qr-code-bundle)

PHPackages © 2026

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