PHPackages                             howyi/twitter-monitor - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. howyi/twitter-monitor

ActiveLibrary[HTTP &amp; Networking](/categories/http)

howyi/twitter-monitor
=====================

Twitter Stream monitoring tool

v1.0.1(8y ago)012[1 issues](https://github.com/howyi/twitter-monitor/issues)MITPHPPHP &gt;=7.1

Since Dec 19Pushed 8y agoCompare

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

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

twitter-monitor
===============

[](#twitter-monitor)

Twitter Stream monitoring tool

Start monitoring
----------------

[](#start-monitoring)

```
// Return the greeting bot

$monitor = new \ServiceMonitor\Twitter\UserStreamMonitor(
    getenv('TWITTER_ACCESS_TOKEN'),
    getenv('TWITTER_ACCESS_TOKEN_SECRET'),
    getenv('TWITTER_CONSUMER_KEY'),
    getenv('TWITTER_CONSUMER_SECRET')
);

$event = new class extends \ServiceMonitor\Twitter\TwitterEvent
{
    public function isExecutable(array $value): bool
    {
        if (!isset($value['in_reply_to_user_id_str']) or !isset($value['text'])) {
            return false;
        }

        if ($value['in_reply_to_user_id_str'] !== $this->self->id_str) {
            return false;
        }

        return (strpos($value['text'], 'hello') !== false);
    }

    public function execute(array $value): void
    {
        echo("User:@{$value['user']['screen_name']} greeted :)" . PHP_EOL);

        $status = "Hello, @{$value['user']['screen_name']} !";

        $this->connection->post(
            'statuses/update',
            ['in_reply_to_status_id'=> $value['id_str'], 'status' => $status]
        );
    }
};

$monitor->setEvent($event);
$monitor->start();
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6592938?v=4)[niwatori / Hayashi Takuya](/maintainers/howyi)[@howyi](https://github.com/howyi)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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