PHPackages                             mpyw/hardbotter - 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. mpyw/hardbotter

AbandonedArchivedLibrary

mpyw/hardbotter
===============

Yet another EasyBotter

v1.0.0(9y ago)9522MITPHPPHP &gt;=5.5.0

Since Aug 30Pushed 8y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

HardBotter [![Build Status](https://camo.githubusercontent.com/6044cb84eb72f1c1512d4ca947121362ea35203a55d9dad09405266a4ec82cc5/68747470733a2f2f7472617669732d63692e6f72672f6d7079772f48617264426f747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mpyw/HardBotter) [![Coverage Status](https://camo.githubusercontent.com/5983b564e699548ddc524161252ec12eb2d1f79b24b8715f16c7d70bdf4806db/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d7079772f48617264426f747465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mpyw/HardBotter?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/b4d8029c19dfe02462bd614873ff644d750eaf88a6ede29144aebafa364735b0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d7079772f48617264426f747465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mpyw/HardBotter/?branch=master)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#hardbotter---)

「PHPが書けないと作れない」Cron系のTwitterボット作成支援ライブラリです．自由な書き方ができ，カスタマイズ性が高いのが特長です．

- **PHP 5.5 以降** で動作します．
- Twitterクライアントとしては，[TwistOAuth](https://github.com/mpyw/TwistOAuth) の後継である **[Cowitter](https://github.com/mpyw/cowitter)** を利用します．Generatorを活用して非同期処理をバリバリ書けます．
- 「PHPが書けなくても作れる」と称する[EasyBotter](http://pha22.net/twitterbot/)とは何の関係もありません．

インストール
======

[](#インストール)

`composer require mpyw/hardbotter:^1.0`

主なソースファイル
=========

[](#主なソースファイル)

src/Bot.php
-----------

[](#srcbotphp)

`Bot` クラスが記述されたファイルです．

- このファイルを読む必要はありません．
- このクラスは以下に示す2つのインタフェースを実装しています．

[src/IBotEssential.php](https://github.com/mpyw/HardBotter/blob/master/src/IBotEssential.php)
---------------------------------------------------------------------------------------------

[](#srcibotessentialphp)

`Bot` クラスが実装している必須メソッド群です．

- 説明書となるのでソースを読んでください．

[src/IBotHelper.php](https://github.com/mpyw/HardBotter/blob/master/src/IBotHelper.php)
---------------------------------------------------------------------------------------

[](#srcibothelperphp)

`Bot` クラスが実装しているヘルパーメソッド群です．

- 説明書となるのでソースを読んでください．
- 必須ではありませんが，使用頻度が高いものも多く含みます．

サンプル
====

[](#サンプル)

サンプルが `examples/run.php` にあります．設定ファイルには [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) を利用しています．

`examples/.env` を生成して

```
CONSUMER_KEY="****"
CONSUMER_SECRET="****"
ACCESS_TOKEN="****"
ACCESS_TOKEN_SECRET="****"
TIMEZONE="Asia/Tokyo"

```

のように編集した上で， `examples/run.php` を定期実行してください．

備考
==

[](#備考)

このライブラリはcronで定期的に動作させるBot向けのものですが，ストリーミングAPIを利用したリアルタイム系のBotにも対応できます．

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3549d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1351893?v=4)[mpyw](/maintainers/mpyw)[@mpyw](https://github.com/mpyw)

---

Top Contributors

[![mpyw](https://avatars.githubusercontent.com/u/1351893?v=4)](https://github.com/mpyw "mpyw (60 commits)")

---

Tags

botphptwittertwitter-apitwitter-bot

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/mpyw-hardbotter/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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