Download the PHP package keinos/mastodon-streaming-api-parser without Composer
On this page you can find all versions of the php package keinos/mastodon-streaming-api-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download keinos/mastodon-streaming-api-parser
More information about keinos/mastodon-streaming-api-parser
Files in keinos/mastodon-streaming-api-parser
Download keinos/mastodon-streaming-api-parser
More information about keinos/mastodon-streaming-api-parser
Files in keinos/mastodon-streaming-api-parser
Vendor keinos
Package mastodon-streaming-api-parser
Short Description Parses the Mastodon Streaming API server-sent events to JSON.
License MIT
Homepage https://github.com/KEINOS/Mastodon_StreamingAPI_Parser
Package mastodon-streaming-api-parser
Short Description Parses the Mastodon Streaming API server-sent events to JSON.
License MIT
Homepage https://github.com/KEINOS/Mastodon_StreamingAPI_Parser
Please rate this library. Is it a good library?
Informations about the package mastodon-streaming-api-parser
Server-Sent Events parser of Mastodon Streaming API in PHP
This class simply parses the received lines from server-sent events of the Mastodon Streaming API to JSON object string.
The below lines (server-sent event messages) will be parsed in JSON as below.
↓
↓
Use this class if you are receiving the streaming signal directly from Mastodon Streaming API via socket connection, rather than WebSocket which requires an access token when upgrading the protocol.
Install
Usage
-
Instantiation
-
Method
-
Returned JSON string structure
- Interface: ParserInterface.php
Sample
- Complete sample see: ./samples/Main.php
Specifications/Info
- PHP: ^7.1 || ^8.0
- Available event types to detect:
update
anddelete
- Source Code: Mastodon_StreamingAPI_Parser @ GitHub
- Package release: keinos/mastodon-streaming-api-parser @ Packagist
Contribution
- Issues
- Throw an issue at: https://github.com/KEINOS/Mastodon_StreamingAPI_Parser/issues
- If the issue is a bug, then please provide a simple example that are reproducible.
- If the issue is a feature request, then also provide a simple example with the results you wish, so we can create a test before implementing your feature.
- PR (Pull Request)
- Please PR to the
padawan
branch. After the CI tests/reviews, then merged tomaster
branch it will ;-) - For more see: CONTRIBUTE.md
- Please PR to the
- Rules
- Be nice, be happy and stay safe.
All versions of mastodon-streaming-api-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0 || ^7.1
ext-mbstring Version *
ext-json Version *
ext-mbstring Version *
ext-json Version *
The package keinos/mastodon-streaming-api-parser contains the following files
Loading the files please wait ....