Use the official Sonos API to control your speakers
A PHP library for interacting with the official Sonos API.
The recommended method of installing this library is via Composer.
Run the following command from your project root:
$ composer require duncan3dc/sonos-cloud
I also maintain a library that allows you to control speakers on your local network: