File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ /.gitattributes export-ignore
2
+ /.github /workflows / export-ignore
3
+ /.gitignore export-ignore
4
+ /examples / export-ignore
5
+ /phpunit.xml.dist export-ignore
6
+ /phpunit.xml.legacy export-ignore
7
+ /tests / export-ignore
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ Let's take these projects to the next level together! 🚀
43
43
## Quickstart example
44
44
45
45
``` php
46
- use Clue\Redis\Protocol;
46
+ <?php
47
47
48
- $factory = new Protocol\Factory();
48
+ require __DIR__ . '/vendor/autoload.php';
49
+
50
+ $factory = new Clue\Redis\Protocol\Factory();
49
51
$parser = $factory->createResponseParser();
50
52
$serializer = $factory->createSerializer();
51
53
@@ -63,6 +65,8 @@ var_dump($reply1->getValueNative()); // string(2) "OK"
63
65
var_dump($reply2->getValueNative()); // string(5) "value"
64
66
```
65
67
68
+ See also the [ examples] ( examples/ ) .
69
+
66
70
## Usage
67
71
68
72
### Factory
Original file line number Diff line number Diff line change 2
2
3
3
require __DIR__ . '/../vendor/autoload.php ' ;
4
4
5
- use Clue \Redis \Protocol ;
6
-
7
- $ factory = new Protocol \Factory ();
5
+ $ factory = new Clue \Redis \Protocol \Factory ();
8
6
$ parser = $ factory ->createResponseParser ();
9
7
$ serializer = $ factory ->createSerializer ();
10
8
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use Clue \Redis \Protocol \ProtocolBuffer ;
4
- use Clue \Redis \Protocol \Factory ;
5
-
6
3
require __DIR__ . '/../vendor/autoload.php ' ;
7
4
8
- $ factory = new Factory ();
5
+ $ factory = new Clue \ Redis \ Protocol \ Factory ();
9
6
$ parser = $ factory ->createResponseParser ();
10
7
$ serializer = $ factory ->createSerializer ();
11
8
You can’t perform that action at this time.
0 commit comments