PHPackages                             paulhennell/twitter-account-info - 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. paulhennell/twitter-account-info

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

paulhennell/twitter-account-info
================================

A package to get basic account info like follower count number for a twitter account without requiring a twitter API login.

v1.0.0(3y ago)0301MITHTMLPHP ^8.1

Since Oct 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/paulhennell/twitter-account-info)[ Packagist](https://packagist.org/packages/paulhennell/twitter-account-info)[ Docs](https://github.com/paulhennell/twitter-account-info)[ GitHub Sponsors](https://github.com/paulhennell)[ RSS](/packages/paulhennell-twitter-account-info/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (10)Versions (5)Used By (0)

A package to get basic account info for a Twitter account without requiring a Twitter API login.
================================================================================================

[](#a-package-to-get-basic-account-info-for-a-twitter-account-without-requiring-a-twitter-api-login)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76d1fdbd8f4e77860b2776a87c1f87135fb5af8bdd812218ba8a59af44793bad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061756c68656e6e656c6c2f747769747465722d6163636f756e742d696e666f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paulhennell/twitter-account-info)[![Tests](https://github.com/paulhennell/twitter-account-info/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/paulhennell/twitter-account-info/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/34c6083952e7ada3836ceb1552c99d66d95e70e6f60f86b5ef9dee36c19a59fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061756c68656e6e656c6c2f747769747465722d6163636f756e742d696e666f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paulhennell/twitter-account-info)

This is a basic package to get the number of followers and other basic account info from Twitter without the complications of the official Twitter API. As a non-official project it should not be considered totally reliable, and as of v1.0 this relies on a Nitter instance, so if they all break, this will too.

Abandoned
=========

[](#abandoned)

With twitter cracking down on API and scraping systems, the nitter workaround is so unreliable this package has become unusuable.

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

[](#installation)

You can install the package via composer:

```
composer require paulhennell/twitter-account-info
```

You may require a Http Client library if you don't have one in your project. [See here for more](https://docs.php-http.org/en/latest/httplug/users.html).

For a fast fix you can simply install guzzle first like so:

```
composer require guzzlehttp/psr7
```

Usage
-----

[](#usage)

You use the system by passing in a twitter username

```
$accountInfo = (new Paulhennell\TwitterAccountInfo())->getFromUsername("hennell_dev");
echo $accountInfo->followers_count;
echo $accountInfo->tweet_count; //etc
```

If your HTTP Client isn't automatically discovered you can pass it into the constructor:

```
$accountInfo = (new Paulhennell\TwitterAccountInfo($httpClient))->getFromUsername("hennell_dev");
```

### Nitter

[](#nitter)

As of V1.0 this package relies on scraping the alternative twitter front end [Nitter](https://github.com/zedeus/nitter).

Nitter has multiple instances and by default this package will randomly use one of four (see: RandomNitterUrl class).

To specify a specific instance you can pass a url string in with the username:

```
$accountInfo = (new Paulhennell\TwitterAccountInfo())->getFromUsername("hennell_dev", "https://nitter.net");
```

For more advance use (like random selection, or running an uptime check to pick a currently working nitter site) you can pass in any class that implements `NitterUrlInterface` - which simply needs to return a url string from a static method `getUrl`.

You can find a helpful list of possible nitter instances [here](https://github.com/xnaas/nitter-instances)

Testing
-------

[](#testing)

```
composer test
```

For client packages be sure to avoid running tests that would execute a web request. Use Mockery to fake the Twitter AccountInfo class and return a manually created AccountInfo object.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Paul Hennell](https://github.com/paulhennell)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~139 days

Total

2

Last Release

1220d ago

Major Versions

v0.5.0-alpha → v1.0.02023-02-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/332085?v=4)[Bill Hennell](/maintainers/hennell)[@hennell](https://github.com/hennell)

---

Top Contributors

[![paulhennell](https://avatars.githubusercontent.com/u/4799852?v=4)](https://github.com/paulhennell "paulhennell (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

paulhennelltwitter-account-info

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/paulhennell-twitter-account-info/health.svg)

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

###  Alternatives

[razorpay/ifsc

Razorpay IFSC Codes Library

385205.4k](/packages/razorpay-ifsc)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M734](/packages/sylius-sylius)[florianv/exchanger

PHP exchange rate provider layer for currency conversion: 30+ services, chain fallback, and caching.

1865.0M20](/packages/florianv-exchanger)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M86](/packages/mcp-sdk)[anthropic-ai/sdk

Anthropic PHP SDK

163583.3k16](/packages/anthropic-ai-sdk)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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