PHPackages                             elcodedocle/marketo-soap-api-php-client - 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. elcodedocle/marketo-soap-api-php-client

ActiveApiclient[API Development](/categories/api)

elcodedocle/marketo-soap-api-php-client
=======================================

Marketo SOAP API PHP Client

0.4.0(8y ago)01922MITPHPPHP &gt;=5.3.0

Since Jul 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/codecrafts-dev/marketo-soap-api-php-client)[ Packagist](https://packagist.org/packages/elcodedocle/marketo-soap-api-php-client)[ Docs](https://github.com/elcodedocle/marketo-soap-api-php-client)[ RSS](/packages/elcodedocle-marketo-soap-api-php-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

Marketo SOAP API PHP (micro-) Client
====================================

[](#marketo-soap-api-php-micro--client)

Copyright (C) 2014-2016 Gael Abadin
License: [MIT Expat](https://raw.githubusercontent.com/elcodedocle/marketo-soap-api-php-client/master/LICENSE)
Version: 0.4.0-beta
[![Build Status](https://camo.githubusercontent.com/0aac1b106f3515c2d605d0e66b54a1bab3891789ec08c4644e74b491c0da1764/68747470733a2f2f7472617669732d63692e6f72672f656c636f6465646f636c652f6d61726b65746f2d736f61702d6170692d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/elcodedocle/marketo-soap-api-php-client)
[![Code Climate](https://camo.githubusercontent.com/bc44c130c1fad8ec09edec5fee4b6530371bc75ab774388d656aab6970120206/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656c636f6465646f636c652f6d61726b65746f2d736f61702d6170692d7068702d636c69656e742e706e67)](https://codeclimate.com/github/elcodedocle/marketo-soap-api-php-client)

Unofficial PHP client for the Marketo.com SOAP API: . Requires PHP 5.3.0+ with the SOAP extension enabled (and cURL extension for SSL support)

### Installation

[](#installation)

The recommended way of installing the client is via [Composer](http://getcomposer.org/). Simply run the following command to add the library to your composer.json file.

```
composer require elcodedocle/marketo-soap-api-php-client

```

Alternatively, you can simply add MarketoSoapClient.php to your project.

### Usage example

[](#usage-example)

Create a MarketoSoapApiClient object:

```
require_once 'route/to/MarketoSoapApiClient.php';

use CodeCrafts\MarketoSoap\MarketoSoapApiClient;

// replace with your Marketo soap endpoint (without ?WSDL at the end)
$soapEndpoint = 'https://.mktoapi.com/soap/mktows/2_2';

try {
    $marketoSoapApiClient = new MarketoSoapApiClient(
        '',
        '',
        new SoapClient(
            $soapEndpoint."?WSDL",
            MarketoSoapApiClient::buildOptionsArray($soapEndpoint)
        )
    );
} catch (SoapFault $ex){
    // Error connecting to Marketo SOAP Endpoint
    // ...
}
```

Invoke any of the implemented methods, e.g.:

```
$leadCookie = ''; // fill in with some lead cookie value you want to test

var_export(
    $marketoSoapApiClient->getLeadBy(
        'COOKIE',
        $leadCookie
    )
);
```

will echo the processed lead obtained for `$leadCookie`.

(Check the phpdoc on MarketoSoapApiClientInterface.php for info on the implemented methods and their parameters)

### TODO:

[](#todo)

- Implement wrappers for all the missing methods. (This API implements wrappers for only 5 out of the 23 methods marketo SOAP API provides: getLead, syncLead, getCampaignsForSource, requestCampaign and scheduleCampaign. I don't need to use any more methods right now, but I'll be implementing more as I need them, and any requests will be considered and implemented in order of popularity, so don't hessitate on opening/+1 a ticket or a pull request if you like this code and would like to request some particular extension or implement one yourself and have it merged into this project).

### Acks

[](#acks)

[Ben Ubois](https://github.com/benubois), the developer behind [Marketo](https://github.com/flickerbox/marketo), "A PHP client for the Marketo SOAP API"

Enjoy!

(

bitcoin: 1DMD3ymSTKoe16kNme87UnYcrXyZdkWSjD

dogecoin: D9jDo3XPyALJH63N39wct6eDSeaL4ba5QB

paypal:

)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~641 days

Total

3

Last Release

3029d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3731026?v=4)[elcodedocle](/maintainers/elcodedocle)[@elcodedocle](https://github.com/elcodedocle)

---

Top Contributors

[![elcodedocle](https://avatars.githubusercontent.com/u/3731026?v=4)](https://github.com/elcodedocle "elcodedocle (31 commits)")[![Jaesin](https://avatars.githubusercontent.com/u/159693?v=4)](https://github.com/Jaesin "Jaesin (12 commits)")

---

Tags

apiclientsoapMarketoMarketo APIMarketo SOAP API

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elcodedocle-marketo-soap-api-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/elcodedocle-marketo-soap-api-php-client/health.svg)](https://phpackages.com/packages/elcodedocle-marketo-soap-api-php-client)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
