PHPackages                             antoinebaron-io/moon-doge - 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. antoinebaron-io/moon-doge

ActiveLibrary

antoinebaron-io/moon-doge
=========================

Moon Doge buy Dogecoin on FTX when Elon Musk tweet about it, and sell it for profit

v2.3(4y ago)282110[3 PRs](https://github.com/antoinebaron-io/moon-doge/pulls)PHPPHP &gt;=7.0

Since Jun 17Pushed 4y ago6 watchersCompare

[ Source](https://github.com/antoinebaron-io/moon-doge)[ Packagist](https://packagist.org/packages/antoinebaron-io/moon-doge)[ RSS](/packages/antoinebaron-io-moon-doge/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (4)Used By (0)

moon-doge PHP BOT
=================

[](#moon-doge-php-bot)

moon-doge v2 is a PHP bot that will buy DogeCoin on FTX when Elon Musk mention DogeCoin on twitter. (check v1 for binance)

*Be aware that this script is for educational purposes only*

The script will open a websocket connection and monitor Elon Musk twitter account. If a mention of dogecoin is found in his last tweet, the script will immediately send a market-buy order of dogecoin on FTX (spot or with leverage). The script will also optionnaly set the stop loss/take profit.

[![Capture du 2021-04-01 13-13-49](https://user-images.githubusercontent.com/72351273/113289538-a308c780-92f0-11eb-8d56-d551bfde6069.png)](https://user-images.githubusercontent.com/72351273/113289538-a308c780-92f0-11eb-8d56-d551bfde6069.png)

[![Capture du 2021-04-01 13-12-10](https://user-images.githubusercontent.com/72351273/113289479-8ff5f780-92f0-11eb-8872-a2a001591f2b.png)](https://user-images.githubusercontent.com/72351273/113289479-8ff5f780-92f0-11eb-8872-a2a001591f2b.png)

Dependencies
------------

[](#dependencies)

- API key from your FTX account
- API key from twitter developer ()

The script works using :

- CCXT :
- twitter-api-php :
- spatie/twitter-streaming-api :

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

[](#installation)

> composer require antoinebaron-io/moon-doge

Configuration
-------------

[](#configuration)

open

> vendor/antoinebaron-io/moon-doge/MoonDoge.php

and look for the config array at the top of the file

Usage
-----

[](#usage)

Create a new file index.php and paste :

> require\_once('vendor/autoload.php');

> $moonDoge = new MoonDoge();

> $moonDoge-&gt;run();

Then run in terminal : php index.php

Run a simulation
----------------

[](#run-a-simulation)

You don't want to wait for Elon to tweet about doge to find out there where a configuration problem ... So you can first run the bot to watch your own twitter account, then send a test tweet containing the doge or dogecoin word, and see if it is working.

> require\_once('vendor/autoload.php');

> $moonDoge = new MoonDoge();

> $moonDoge-&gt;run('your\_twitter\_screen\_name');

---

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% 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 ~1 days

Total

3

Last Release

1789d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7891bf516a8f92b9daf0f20d606a9165e18be54c174fa42b5606a1e895e3875f?d=identicon)[antoinebaron-io](/maintainers/antoinebaron-io)

---

Top Contributors

[![antoinebaron](https://avatars.githubusercontent.com/u/72351273?v=4)](https://github.com/antoinebaron "antoinebaron (39 commits)")[![Big-Shark](https://avatars.githubusercontent.com/u/646054?v=4)](https://github.com/Big-Shark "Big-Shark (1 commits)")

---

Tags

binancedogecoinelon-muskftxtradingtrading-bottwitter

### Embed Badge

![Health badge](/badges/antoinebaron-io-moon-doge/health.svg)

```
[![Health](https://phpackages.com/badges/antoinebaron-io-moon-doge/health.svg)](https://phpackages.com/packages/antoinebaron-io-moon-doge)
```

###  Alternatives

[spatie/laravel-twitter-streaming-api

Easily work with the Twitter Streaming API in a Laravel app

20946.0k4](/packages/spatie-laravel-twitter-streaming-api)

PHPackages © 2026

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