@@ -14,7 +14,7 @@ This lightweight library exposes this socket API in a modern way by providing a
14
14
Uses a fluent interface so you can easily chain method calls.
15
15
Error conditions will be signalled using ` Exception ` s instead of relying on cumbersome return codes.
16
16
* ** Lightweight, SOLID design** -
17
- Provides a thin abstraction that is [ * just good enough* ] ( http ://en.wikipedia.org/wiki/Principle_of_good_enough)
17
+ Provides a thin abstraction that is [ * just good enough* ] ( https ://en.wikipedia.org/wiki/Principle_of_good_enough)
18
18
and does not get in your way.
19
19
This library is merely a very thin wrapper and has no other external dependencies.
20
20
* ** Good test coverage** -
@@ -108,7 +108,7 @@ $socket = $factory->createClient('icmp://192.168.0.1');
108
108
109
109
The ` createServer($address) ` method can be used to create a server side (listening) socket bound to specific address/path
110
110
(similar to how [ ` stream_socket_server() ` ] ( http://www.php.net/manual/en/function.stream-socket-server.php ) works).
111
- It accepts the same addressing scheme as the [ ` createClient() ` ] ( #createClient ) method.
111
+ It accepts the same addressing scheme as the [ ` createClient() ` ] ( #createclient ) method.
112
112
113
113
``` php
114
114
// create a TCP/IP stream connection socket server on port 1337
@@ -188,15 +188,20 @@ $socket->close();
188
188
189
189
## Install
190
190
191
- The recommended way to install this library is [ through Composer] ( http ://getcomposer.org) .
192
- [ New to Composer?] ( http ://getcomposer.org/doc/00-intro.md)
191
+ The recommended way to install this library is [ through Composer] ( https ://getcomposer.org) .
192
+ [ New to Composer?] ( https ://getcomposer.org/doc/00-intro.md)
193
193
194
194
``` bash
195
- $ composer require clue/socket-raw:~ 1.2
195
+ $ composer require clue/socket-raw:^1.3
196
196
```
197
197
198
198
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
199
199
200
+ This project aims to run on any platform and thus does not require any PHP
201
+ extensions besides ` ext-sockets ` and supports running on legacy PHP 5.3 through
202
+ current PHP 7+ and HHVM.
203
+ It's * highly recommended to use PHP 7+* for this project.
204
+
200
205
## Tests
201
206
202
207
To run the test suite, you first need to clone this repo and then install all
@@ -216,7 +221,7 @@ Note that the test suite contains tests for ICMP sockets which require root
216
221
access on Unix/Linux systems. Therefor some tests will be skipped unless you run
217
222
the following command to execute the full test suite:
218
223
219
- ``` php
224
+ ``` bash
220
225
$ sudo php vendor/bin/phpunit
221
226
```
222
227
@@ -230,4 +235,7 @@ $ php vendor/bin/phpunit --exclude-group internet
230
235
231
236
## License
232
237
233
- MIT
238
+ This project is released under the permissive [ MIT license] ( LICENSE ) .
239
+
240
+ > Did you know that I offer custom development services and issuing invoices for
241
+ sponsorships of releases and for contributions? Contact me (@clue ) for details.
0 commit comments