Skip to content

Commit 7d39a63

Browse files
authored
Update README.md
1 parent c23cade commit 7d39a63

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

README.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,39 @@ A PHP client for the Marketo SOAP API.
99
- [add_to_campaign](#adding-leads-to-campaigns)
1010
- [get_campaigns](#getting-campaigns)
1111

12-
### Authentication
12+
### Installation
1313

14-
The first thing you'll want to do is include the marketo class and create a new instance of the client.
14+
This repo is not published on Packagist, so please reference it directly as a repository in your `package.json`:
15+
```
16+
"repositories": [
17+
{
18+
"type": "package",
19+
"package": {
20+
"name": "flickerbox/marketo",
21+
"version": "1.0.0",
22+
"type": "library",
23+
"source": {
24+
"url": "https://github.com/flickerbox/marketo.git",
25+
"type": "git",
26+
"reference": "main"
27+
}
28+
}
29+
}
30+
],
31+
"require": {
32+
"flickerbox/marketo": "^1",
33+
}
34+
```
35+
36+
### Authentication
1537

1638
You will need your SOAP user id and SOAP encryption key as well as the hostname for your Marketo API endpoint. These can be found in the Admin -> SOAP section when logged into [app.marketo.com](http://app.marketo.com/).
1739

1840
If you store configuration in the environment you would create a new instance like:
1941

2042
``` php
2143
<?php
22-
require('marketo.php');
44+
require __DIR__ . '/vendor/autoload.php';
2345
$marketo_client = new Marketo($_ENV['MARKETO_USER_ID'], $_ENV['MARKETO_ENCRYPTION_KEY'], $_ENV['MARKETO_SOAP_HOST']);
2446
```
2547

0 commit comments

Comments
 (0)