PHPackages                             duncan3dc/sonos - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. duncan3dc/sonos

ActiveLibrary[API Development](/categories/api)

duncan3dc/sonos
===============

Control Sonos speakers using a simple API

2.3.0(11mo ago)11015.1k39[7 issues](https://github.com/duncan3dc/sonos/issues)[1 PRs](https://github.com/duncan3dc/sonos/pulls)1Apache-2.0PHPPHP ^7.3 || ^8.0CI passing

Since May 29Pushed 1w ago18 watchersCompare

[ Source](https://github.com/duncan3dc/sonos)[ Packagist](https://packagist.org/packages/duncan3dc/sonos)[ Docs](https://github.com/duncan3dc/sonos)[ RSS](/packages/duncan3dc-sonos/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (19)Versions (100)Used By (1)

sonos
=====

[](#sonos)

A PHP library for interacting with [Sonos](https://www.sonos.com/) speakers.

Full documentation is available at
PHPDoc API documentation is also available at [https://duncan3dc.github.io/sonos/api/](https://duncan3dc.github.io/sonos/api/packages/Application.html)

[![release](https://camo.githubusercontent.com/b81f05e1afa55fb5b0de3e2a98c85234150195d1b2bc0825693811636aa7d47e/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f736f6e6f732f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/sonos)[![build](https://github.com/duncan3dc/sonos/actions/workflows/buildcheck.yml/badge.svg)](https://github.com/duncan3dc/sonos/actions/workflows/buildcheck.yml?query=branch%3Amain)[![coverage](https://camo.githubusercontent.com/1e9c288fc9e7157793c5cb1edd4ceae9b1720a4eb65a2d0842902d71e4962074/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f736f6e6f732f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/sonos)

Getting Started
---------------

[](#getting-started)

```
$sonos = new \duncan3dc\Sonos\Network();
$controllers = $sonos->getControllers();
foreach ($controllers as $controller) {
    echo $controller->getRoom() . " (" . $controller->getStateName() . ")\n";
}
```

*Read more at *

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since version 0.8.8
This library was based on the great work done by both [DjMomo/sonos](https://github.com/DjMomo/sonos) and [phil-lavin/sonos](https://github.com/phil-lavin/sonos)

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](https://github.com/duncan3dc/sonos/issues) and I'll do my best to help out.
Alternatively you can connect with me on [LinkedIn](https://linkedin.com/in/duncan3dc)

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance76

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Recently: every ~227 days

Total

86

Last Release

355d ago

Major Versions

0.8.8 → 1.0.02014-12-30

1.9.x-dev → 2.0.02018-07-21

PHP version history (6 changes)0.0.1PHP &gt;=5.4.0

1.4.0PHP &gt;=5.5.0

1.7.0PHP &gt;=5.6.0

1.9.5PHP ^5.6|^7.0

2.0.0PHP ^7.1

2.2.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (362 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![tobiaskluge](https://avatars.githubusercontent.com/u/2651934?v=4)](https://github.com/tobiaskluge "tobiaskluge (2 commits)")[![fdp2](https://avatars.githubusercontent.com/u/7798051?v=4)](https://github.com/fdp2 "fdp2 (2 commits)")[![Nibbler73](https://avatars.githubusercontent.com/u/18286191?v=4)](https://github.com/Nibbler73 "Nibbler73 (2 commits)")[![martinfobian](https://avatars.githubusercontent.com/u/1112243?v=4)](https://github.com/martinfobian "martinfobian (1 commits)")[![0bp](https://avatars.githubusercontent.com/u/586405?v=4)](https://github.com/0bp "0bp (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![PhilippKolmann](https://avatars.githubusercontent.com/u/156899705?v=4)](https://github.com/PhilippKolmann "PhilippKolmann (1 commits)")[![rlerdorf](https://avatars.githubusercontent.com/u/54641?v=4)](https://github.com/rlerdorf "rlerdorf (1 commits)")[![djneo92nl](https://avatars.githubusercontent.com/u/1898500?v=4)](https://github.com/djneo92nl "djneo92nl (1 commits)")[![scottpashley](https://avatars.githubusercontent.com/u/16228214?v=4)](https://github.com/scottpashley "scottpashley (1 commits)")

---

Tags

phpsonosstreamingsonosupnp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/duncan3dc-sonos/health.svg)

```
[![Health](https://phpackages.com/badges/duncan3dc-sonos/health.svg)](https://phpackages.com/packages/duncan3dc-sonos)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M157](/packages/algolia-algoliasearch-client-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k41](/packages/civicrm-civicrm-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
