duncan3dc / sonos
Control Sonos speakers using a simple API
3.0.1
2026-07-30 11:02 UTC
Requires
- php: ^8.1
- ext-soap: *
- ext-sockets: *
- duncan3dc/cache: ^1.0 || ^2.0
- duncan3dc/domparser: ^2.2.1
- duncan3dc/sonos-common: ^1.0
- duncan3dc/speaker: ^1.0
- guzzlehttp/guzzle: ^6.0 || ^7.0 || ^8.0
- league/flysystem: ^3.7
- league/flysystem-local: ^3.0
- psr/log: ^1.1 || ^2.0 || ^3.0
- psr/simple-cache: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3 || ^1.0
- maglnet/composer-require-checker: ^4.0
- mockery/mockery: ^1.5
- monolog/monolog: ^2.10 || ^3.0
- nikic/php-parser: ^4.13
- phpstan/phpstan: ^2.2
- phpstan/phpstan-mockery: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 3.0.1
- 3.0.0
- 2.3.0
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.x-dev
- 2.1.1
- 2.1.0
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.9.x-dev
- 1.9.11
- 1.9.10
- 1.9.9
- 1.9.8
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.5
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- 0.0.2
- 0.0.1
- dev-guzzle8
- dev-add-php-8
- dev-device-descriptions
- dev-documentation
- dev-mock-system
- dev-subscriptions
- dev-spotify
- dev-favourites
- dev-issue-62
This package is auto-updated.
Last update: 2026-08-30 11:12:45 UTC
README
A PHP library for interacting with Sonos speakers.
Full documentation is available at https://duncan3dc.github.io/sonos/
PHPDoc API documentation is also available at https://duncan3dc.github.io/sonos/api/
Getting Started
$sonos = new \duncan3dc\Sonos\Network(); $controllers = $sonos->getControllers(); foreach ($controllers as $controller) { echo $controller->getRoom() . " (" . $controller->getStateName() . ")\n"; }
Read more at https://duncan3dc.github.io/sonos/
Changelog
A Changelog has been available since version 0.8.8
This library was based on the great work done by both DjMomo/sonos and phil-lavin/sonos
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can connect with me on LinkedIn