PHPackages                             gravitymedia/ssdp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gravitymedia/ssdp

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

gravitymedia/ssdp
=================

Simple Service Discovery Protocol (SSDP) library for PHP

v0.1.0(11y ago)380MITPHPPHP &gt;=5.4

Since Feb 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/GravityMedia/Ssdp)[ Packagist](https://packagist.org/packages/gravitymedia/ssdp)[ RSS](/packages/gravitymedia-ssdp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Ssdp
====

[](#ssdp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9aa257f75066ca882120cdf0e4a7304cf2b28107726f6e7bb27421937bad18e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677261766974796d656469612f737364702e737667)](https://packagist.org/packages/gravitymedia/ssdp)[![Software License](https://camo.githubusercontent.com/a099c0dfb5058c485083f12ff85d8d1f5f62ef70b144dce2b29b2d46892743fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f677261766974796d656469612f737364702e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c355974fc0cd29c063e85acf0f76ee99b9f4ab01cf141d8b23e4719b60acd6d0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f477261766974794d656469612f537364702e737667)](https://travis-ci.org/GravityMedia/Ssdp)[![Coverage Status](https://camo.githubusercontent.com/230cc4ae21aaae5886fb26036cca5f2f2086741176e8b19eb9d425e72841461c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f477261766974794d656469612f537364702e737667)](https://scrutinizer-ci.com/g/GravityMedia/Ssdp/code-structure)[![Quality Score](https://camo.githubusercontent.com/2403f0ee5dba0c911b65772990b89e4df12b6f0951160fe908dec120580d7163/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f477261766974794d656469612f537364702e737667)](https://scrutinizer-ci.com/g/GravityMedia/Ssdp)[![Total Downloads](https://camo.githubusercontent.com/054b2032bdf1e6f8a89f239b7abbf2d6ea0a1ec09d73edf6fba6f6853744bd7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f677261766974796d656469612f737364702e737667)](https://packagist.org/packages/gravitymedia/ssdp)[![Dependency Status](https://camo.githubusercontent.com/bb27ec7a75c8888c10f64756a802178c27d3bd5c7a4f1171c74bde417ba86c1a/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f677261766974796d656469613a737364702e737667)](https://www.versioneye.com/user/projects/54a6c3ea27b014d85a000192)

Simple Service Discovery Protocol (SSDP) library for PHP.

Requirements
------------

[](#requirements)

This library has the following requirements:

- PHP 5.6+

Installation
------------

[](#installation)

Install Composer in your project:

```
$ curl -s https://getcomposer.org/installer | php
```

Add the package to your `composer.json` and install it via Composer:

```
$ php composer.phar require gravitymedia/ssdp
```

Usage
-----

[](#usage)

```
// Initialize autoloader
require 'vendor/autoload.php';

// Import classes
use GravityMedia\Ssdp\Client;
use GravityMedia\Ssdp\Event\DiscoverEvent;
use GravityMedia\Ssdp\Options\AliveOptions;
use GravityMedia\Ssdp\Options\DiscoverOptions;
use GravityMedia\Ssdp\UniqueServiceName;

// Create client
$client = new Client();

// Add listeners
$client->getEventDispatcher()
    ->addListener(DiscoverEvent::EVENT_DISCOVER, function (DiscoverEvent $event) {
        var_dump($event);
    });
$client->getEventDispatcher()
    ->addListener(DiscoverEvent::EVENT_DISCOVER_ERROR, function (DiscoverEvent $event) {
        var_dump($event->getException());
    });

// Create options
$options = new DiscoverOptions();

// Discover devices and services
$client->discover($options);
```

Testing
-------

[](#testing)

Clone this repository, install Composer and all dependencies:

```
$ php composer.phar install
```

Run the test suite:

```
$ php composer.phar test
```

Generating documentation
------------------------

[](#generating-documentation)

Clone this repository, install Composer and all dependencies:

```
$ php composer.phar install
```

Generate the documentation to the `build/docs` directory:

```
$ php composer.phar doc
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Daniel Schröder](https://github.com/pCoLaSD)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e61ae24c7c960cd7bd94e0f0ac4501df18a8026d2538b0ed99176aec0462c16a?d=identicon)[schroedan](/maintainers/schroedan)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gravitymedia-ssdp/health.svg)

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

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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