PHPackages                             sergix44/twscraper - 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. sergix44/twscraper

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

sergix44/twscraper
==================

A fast and simple scraper for the Twitter advanced search.

4.0(4y ago)579MITPHPPHP &gt;=7.4

Since Jul 12Pushed 4y agoCompare

[ Source](https://github.com/SergiX44/twscraper)[ Packagist](https://packagist.org/packages/sergix44/twscraper)[ Docs](https://github.com/sergix44/twscraper)[ RSS](/packages/sergix44-twscraper/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

TW Scraper: A simple PHP Twitter search scraper.
------------------------------------------------

[](#tw-scraper-a-simple-php-twitter-search-scraper)

Installation:

```
composer require sergix44/twscraper

```

Example:

```
use SergiX44\Twitter\TwitterScraper;

$scraper = TwitterScraper::make()
	->search('near:Verona within:2km filter:images filter:hashtags', new DateTime('2019-06-15'), new DateTime('2019-07-22'))
	->setLang('en')// optional
	/** @var Tweet[] $tweets */
	->onChunk(function (array $tweets, int $totalTweets) { // optional
		//...
	}, true) // than flush? (useflul when processing lot of tweets and avoid memory exhausted errors)
	->setChunkSize(100)// optional
	->run();

/** @var Tweet[] $tweets */
$tweets = $scraper->getTweets();
```

WARNING: if the flush is set to true, the method getTweets will return only the latest chunk of tweets!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~86 days

Recently: every ~234 days

Total

12

Last Release

1597d ago

Major Versions

1.4 → 2.02019-07-16

2.0 → 3.02019-07-22

3.0.4 → 4.02022-02-15

PHP version history (2 changes)1.0PHP ^7.1

4.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/08bc14acf1f7db717de09e715047f5b5684841d6b9712129334931fa8833beda?d=identicon)[SergiX44](/maintainers/SergiX44)

---

Top Contributors

[![sergix44](https://avatars.githubusercontent.com/u/4172890?v=4)](https://github.com/sergix44 "sergix44 (26 commits)")

---

Tags

twitterscraper

### Embed Badge

![Health badge](/badges/sergix44-twscraper/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M110](/packages/google-cloud-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[workos/workos-php

WorkOS PHP Library

423.0M9](/packages/workos-workos-php)

PHPackages © 2026

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