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

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

alexroan/twitter-scraper
========================

Scrapes tweets from a user's profile

6391PHP

Since Jun 1Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

twitter-scraper
===============

[](#twitter-scraper)

Grab tweets from a user's public profile without api credentials

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

[](#installation)

### Composer

[](#composer)

composer require alexroan/twitter-scraper

Usage
-----

[](#usage)

```
//get feed
$feed = Twitter_Scraper::get_feed('alexroan');

//loop through posts
foreach($feed as $tweet){

    //tweet id
    $id = $tweet->id;

    //username of tweeter
    $username = $tweet->username;

    //bool whether retweet or not
    $is_retweet = $tweet->is_retweet;

    //body text of tweet
    $text = $tweet->text;

    //time tweeted
    $time = $tweet->time;

    //any media in tweet
    $media = $tweet->media;

    //number of replies
    $reply = $tweet->reply;

    //number of retweets
    $retweet = $tweet->retweet;

    //number of favourites
    $favourite = $tweet->favourite;

}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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/1b90812930c17f5a0b2b36ce1cfff0ce23c44010df034840988cb5b68ee76477?d=identicon)[alexroan](/maintainers/alexroan)

---

Top Contributors

[![alexroan](https://avatars.githubusercontent.com/u/6523673?v=4)](https://github.com/alexroan "alexroan (15 commits)")

### Embed Badge

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

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

###  Alternatives

[luzhuqun/laravel-mqtt-publish

A simple Laravel 5 mqtt publisher

219.8k](/packages/luzhuqun-laravel-mqtt-publish)[agence-adeliom/easy-editor-bundle

A Symfony bundle for EasyAdmin that provide a flexible content editor

1111.0k1](/packages/agence-adeliom-easy-editor-bundle)

PHPackages © 2026

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