We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c705d commit b52fd7dCopy full SHA for b52fd7d
README.md
@@ -9,6 +9,16 @@ Segment PHP Client
9
This library provides a Web Service Client for the Segment.io HTTP API
10
using [Guzzle v5](http://guzzle.readthedocs.org/en/5.3/).
11
12
+### Installation
13
+
14
+Installation
15
16
+Install the latest version with:
17
18
+```bash
19
+$ composer require uecode/segment-io-php ~1.1
20
+```
21
22
### Basic Usage
23
```php
24
use SegmentIO\Client;
@@ -25,7 +35,7 @@ $client->identify([
25
35
]
26
36
]);
27
37
28
-// Track an event (userId is required)
38
+// Track an event (userId or anonymousId is required for all events!)
29
39
$client->track([
30
40
'userId' => $user->getId(),
31
41
'event' => 'Some Event Happened',
0 commit comments