Sonos Cloud A PHP library for interacting with the official Sonos API

Getting Started

Usage

Players

View the API Documentation for this class

Get some information about a speaker:

# Get the ID of the speaker
$player->getId();

# Get the room name assigned to this speaker
$player->getRoom();

Manage the volume of a speaker:

if ($player->getVolume() > 50) {
    $player->setVolume(50);
}

$player->adjustVolume(10);
$player->adjustVolume(-10);

Mute a speaker:

$player->mute();

if ($player->isMuted()) {
    $player->unmute();
}