This library makes use of both json and sockets functions from PHP, which are commonly part of extensions.
Therefore ext-json and ext-sockets should at least be in suggests (if they are not required for all code paths/are therefore optional), if not in require itself.
https://getcomposer.org/doc/01-basic-usage.md#platform-packages