PHPackages                             eyefi/marketo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. eyefi/marketo

ActiveLibrary[API Development](/categories/api)

eyefi/marketo
=============

A PHP client for the Marketo SOAP API.

v1.0.1(9y ago)02.6kMITPHP

Since May 22Pushed 9y ago5 watchersCompare

[ Source](https://github.com/eyefi/marketo)[ Packagist](https://packagist.org/packages/eyefi/marketo)[ RSS](/packages/eyefi-marketo/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Marketo
=======

[](#marketo)

A PHP client for the Marketo SOAP API.

Installation
------------

[](#installation)

Add following line to your composer.json require:

```
"eyefi/marketo": "dev-master"
```

And the following to you composer.json repositories:

```
{
  "type": "vcs",
  "url": "https://github.com/eyefi/marketo"
}
```

Usage
-----

[](#usage)

- [get\_lead\_by](#getting-a-lead)
- [sync\_lead](#creating-or-updating-a-lead)
- [add\_to\_campaign](#adding-leads-to-campaigns)
- [get\_campaigns](#getting-campaigns)

### Authentication

[](#authentication)

The first thing you'll want to do is include the marketo class and create a new instance of the client.

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 -&gt; SOAP section when logged into [app.marketo.com](http://app.marketo.com/).

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

```
