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

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

keinos/mastodon-streaming-api-config
====================================

Class that holds configuration info to use KEINOS\\MSTDN\_TOOLS classes.

1.0.1(5y ago)0269[1 issues](https://github.com/KEINOS/Mastodon_StreamingAPI_Config/issues)1MITPHPPHP ^8.0 || ^7.1

Since Jul 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/KEINOS/Mastodon_StreamingAPI_Config)[ Packagist](https://packagist.org/packages/keinos/mastodon-streaming-api-config)[ Docs](https://github.com/KEINOS/Mastodon_StreamingAPI_Config)[ RSS](/packages/keinos-mastodon-streaming-api-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (5)Used By (1)

[![](https://camo.githubusercontent.com/12ac2891d9893a7096be0d433560ad9b16195389ff3c35d097caa7c7039a1760/68747470733a2f2f6170692e7472617669732d63692e6f72672f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f436f6e6669672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KEINOS/Mastodon_StreamingAPI_Config/builds "View Build Status in Travis CI")[![](https://camo.githubusercontent.com/6eae5dc5c716f715737808adcab49feb626facaf3ec098575e7a15b17342e31d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f436f6e6669672f6d6173746572)](https://coveralls.io/github/KEINOS/Mastodon_StreamingAPI_Config?branch=master "View Coverage Status in COVERALLS")[![](https://camo.githubusercontent.com/6a364b78c6a96963a48940ac25e081e046a278f0517a28f31b699b180c4425d3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f4b45494e4f532f4d6173746f646f6e5f53747265616d696e674150495f436f6e6669672f6d6173746572)](https://scrutinizer-ci.com/g/KEINOS/Mastodon_StreamingAPI_Config/?branch=master "View code quality in Scrutinizer")[![](https://camo.githubusercontent.com/ce85583ad92c0378b6ed750eb5c8a32851484f59300363f2f350bb60f6dbcf2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b65696e6f732f6d6173746f646f6e2d73747265616d696e672d6170692d636f6e666967)](https://github.com/KEINOS/Mastodon_Streaming_API_Config/blob/master/.travis.yml "View version support in Packagist")

Configuration Settings Class
============================

[](#configuration-settings-class)

This PHP class simply holds Mastodon server information from ["instance" API method](https://docs.joinmastodon.org/methods/instance/).

Use this class to get the URI of [Mastodon Streaming API](https://docs.joinmastodon.org/methods/timelines/streaming/) for receiving messages from `server-sent events` or `WebSocket`.

- Note: This class is aimed to be used in other [Mastodon StreamingAPI tools](https://github.com/search?q=user%3AKEINOS+Mastodon_StreamingAPI_).

Install
-------

[](#install)

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

Usage
-----

[](#usage)

```
