PHPackages                             keinos/mastodon-streaming-api-listener - 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. keinos/mastodon-streaming-api-listener

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

keinos/mastodon-streaming-api-listener
======================================

Listens to the server-sent messages of Mastodon Streaming API and returns the events in JSON.

1.0.1(5y ago)218MITPHPPHP ^8.0 || ^7.1

Since Jul 27Pushed 5y agoCompare

[ Source](https://github.com/KEINOS/Mastodon_StreamingAPI_Listener)[ Packagist](https://packagist.org/packages/keinos/mastodon-streaming-api-listener)[ Docs](https://github.com/KEINOS/Mastodon_StreamingAPI_Listener)[ RSS](/packages/keinos-mastodon-streaming-api-listener/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (13)Versions (5)Used By (0)

[![](https://camo.githubusercontent.com/b2a34bf737f431333c50bcc8c225c3194fee6595e839125433deb9073d7e7128/68747470733a2f2f7472617669732d63692e636f6d2f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f4c697374656e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/KEINOS/Mastodon_StreamingAPI_Listener "View Build Status on Travis")[![](https://camo.githubusercontent.com/d86e31feae9fc7ce1e53949dcefe4c1d79e96a81608a75e8867b917a01cd98fb/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f4c697374656e6572)](https://coveralls.io/github/KEINOS/Mastodon_StreamingAPI_Listener?branch=master "Code Coverage on COVERALLS")[![](https://camo.githubusercontent.com/f100e530f18686400a330d5294a1016e137d79af2042915e066494ef72145097/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f4c697374656e65722f6d6173746572)](https://scrutinizer-ci.com/g/KEINOS/Mastodon_StreamingAPI_Listener/?branch=master "Code quality in Scrutinizer")[![](https://camo.githubusercontent.com/d8e6cafb4e3f3a16a6f589a338db40171be821ef45fc0371e885d5a4abfb3f7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b65696e6f732f6d6173746f646f6e2d73747265616d696e672d6170692d706172736572)](https://github.com/KEINOS/Mastodon_StreamingAPI_Listener/blob/master/.travis.yml "Version Support")

Simple Mastodon Streaming API Listener
======================================

[](#simple-mastodon-streaming-api-listener)

This is a PHP class that listens to the Mastodon Streaming API's server-sent messages.

Install
-------

[](#install)

```
composer require keinos/mastodon-streaming-api-listener
```

Usage
-----

[](#usage)

```
