Skip to content

Commit b52fd7d

Browse files
author
Keith Kirk
committed
last update to readme
1 parent 20c705d commit b52fd7d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ Segment PHP Client
99
This library provides a Web Service Client for the Segment.io HTTP API
1010
using [Guzzle v5](http://guzzle.readthedocs.org/en/5.3/).
1111

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+
1222
### Basic Usage
1323
```php
1424
use SegmentIO\Client;
@@ -25,7 +35,7 @@ $client->identify([
2535
]
2636
]);
2737

28-
// Track an event (userId is required)
38+
// Track an event (userId or anonymousId is required for all events!)
2939
$client->track([
3040
'userId' => $user->getId(),
3141
'event' => 'Some Event Happened',

0 commit comments

Comments
 (0)