You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/clue/ssdp-react)
5
5
6
-
Async [Simple Service Discovery Protocol (SSDP)](http://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol), built on top of [ReactPHP](https://reactphp.org/).
6
+
Async [Simple Service Discovery Protocol (SSDP)](https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol), built on top of [ReactPHP](https://reactphp.org/).
7
7
8
-
SSDP is part of [Universal Plug and Play (UPnP)](http://de.wikipedia.org/wiki/Universal_Plug_and_Play)
8
+
SSDP is part of [Universal Plug and Play (UPnP)](https://de.wikipedia.org/wiki/Universal_Plug_and_Play)
9
9
and is commonly used to discover network services on home networks without
10
10
requiring any manual configuration, such as automatically discovering printers,
11
11
multimedia devices and network routers.
@@ -15,7 +15,7 @@ This library implements SSDP as defined in the
15
15
and uses HTTP over Multicast UDP (HTTPMU) as defined in the
As an alternative, some devices use DNS-Based Service Discovery (DNS-SD) instead
18
-
as defined in [RFC 6763](http://tools.ietf.org/html/rfc6763).
18
+
as defined in [RFC 6763](https://tools.ietf.org/html/rfc6763).
19
19
20
20
**Table of Contents**
21
21
@@ -31,6 +31,10 @@ as defined in [RFC 6763](http://tools.ietf.org/html/rfc6763).
31
31
Once [installed](#install), you can use the following code to search all available UPnP devices in your network:
32
32
33
33
```php
34
+
<?php
35
+
36
+
require __DIR__ . '/vendor/autoload.php';
37
+
34
38
$client = new Clue\React\Ssdp\Client();
35
39
36
40
$client->search()->then(
@@ -48,11 +52,11 @@ $client->search()->then(
48
52
);
49
53
```
50
54
51
-
See also the [examples](examples).
55
+
See also the [examples](examples/).
52
56
53
57
## Install
54
58
55
-
The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)
59
+
The recommended way to install this library is [through composer](https://getcomposer.org/). [New to composer?](https://getcomposer.org/doc/00-intro.md)
56
60
57
61
```JSON
58
62
{
@@ -65,21 +69,21 @@ The recommended way to install this library is [through composer](http://getcomp
65
69
This project aims to run on any platform and thus does not require any PHP
66
70
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
67
71
HHVM.
68
-
It's *highly recommended to use PHP 7+* for this project.
72
+
It's *highly recommended to use the latest supported PHP version* for this project.
69
73
70
74
## Tests
71
75
72
76
To run the test suite, you first need to clone this repo and then install all
0 commit comments