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

Getting Started

Usage

Getting Started

View the API Documentation for this class

Most actions start from the Household object which has a set of methods for getting Sonos resources.

Household

Once you’ve got an authenticated User object you can get all the households they have like so:

$households = $user->getHouseholds();

Or if you know the specific ID of the household you want to control:

$household = $user->getHousehold("Sonos_G5Lv5sdgPfXZ5.hGpwSaya");

Players

You can get all of the speakers available:

$players = $household->getPlayers();

Or the players for a particular room:

$players = $household->getPlayersByRoom("Living Room");

Or a single speaker for a particular room:

$office = $household->getPlayerByRoom("Office");

See what you can do with Players