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/redis-protocol)
5
5
6
-
A streaming redis protocol parser and serializer written in PHP
6
+
A streaming Redis protocol (RESP) parser and serializer written in pure PHP.
7
7
8
-
This parser and serializer implementation allows you to parse redis protocol
8
+
This parser and serializer implementation allows you to parse Redis protocol
9
9
messages into native PHP values and vice-versa. This is usually needed by a
10
-
redis client implementation which also handles the connection socket.
10
+
Redis client implementation which also handles the connection socket.
11
11
12
-
To re-iterate: This is *not* a redis client implementation. This is a protocol
13
-
implementation that is usually used by a redis client implementation. If you're
12
+
To re-iterate: This is *not* a Redis client implementation. This is a protocol
13
+
implementation that is usually used by a Redis client implementation. If you're
14
14
looking for an easy way to build your own client implementation, then this is
15
-
for you. If you merely want to connect to a redis server and issue some
15
+
for you. If you merely want to connect to a Redis server and issue some
16
16
commands, you're probably better off using one of the existing client
17
17
implementations.
18
18
19
19
**Table of contents**
20
20
21
+
*[Support us](#support-us)
21
22
*[Quickstart example](#quickstart-example)
22
23
*[Usage](#usage)
23
24
*[Factory](#factory)
@@ -27,6 +28,16 @@ implementations.
27
28
*[Install](#install)
28
29
*[License](#license)
29
30
31
+
## Support us
32
+
33
+
We invest a lot of time developing, maintaining and updating our awesome
34
+
open-source projects. You can help us sustain this high-quality of our work by
35
+
[becoming a sponsor on GitHub](https://github.com/sponsors/clue). Sponsors get
36
+
numerous benefits in return, see our [sponsoring page](https://github.com/sponsors/clue)
37
+
for details.
38
+
39
+
Let's take these projects to the next level together! 🚀
40
+
30
41
## Quickstart example
31
42
32
43
```php
@@ -62,15 +73,15 @@ your use-case).
62
73
63
74
### Parser
64
75
65
-
The library includes a streaming redis protocol parser. As such, it can safely
66
-
parse redis protocol messages and work with an incomplete data stream. For this,
76
+
The library includes a streaming Redis protocol parser. As such, it can safely
77
+
parse Redis protocol messages and work with an incomplete data stream. For this,
67
78
each included parser implements a single method
68
79
`ParserInterface::pushIncoming($chunk)`.
69
80
70
-
* The `ResponseParser` is what most redis client implementation would want to
71
-
use in order to parse incoming response messages from a redis server instance.
72
-
* The `RequestParser` can be used to test messages coming from a redis client or
73
-
even to implement a redis server.
81
+
* The `ResponseParser` is what most Redis client implementation would want to
82
+
use in order to parse incoming response messages from a Redis server instance.
83
+
* The `RequestParser` can be used to test messages coming from a Redis client or
84
+
even to implement a Redis server.
74
85
* The `MessageBuffer` decorates either of the available parsers and merely
75
86
offers some helper methods in order to work with single messages:
76
87
*`hasIncomingModel()` to check if there's a complete message in the pipeline
0 commit comments