PHPackages                             ex3mp/marketo-rest-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. ex3mp/marketo-rest-client

ActiveLibrary

ex3mp/marketo-rest-client
=========================

A PHP client for the Marketo.com REST API

v0.0.6(7y ago)05MITPHPPHP &gt;=5.3.3

Since Nov 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/EX3MP/marketo-rest-client)[ Packagist](https://packagist.org/packages/ex3mp/marketo-rest-client)[ RSS](/packages/ex3mp-marketo-rest-client/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0f62b3170ae52c763289d6d430f40689dae8c47511545a608afc911d8c7e3ed4/68747470733a2f2f7472617669732d63692e6f72672f6d61726b65746f2d6170692f6d61726b65746f2d726573742d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marketo-api/marketo-rest-client)

Marketo REST API Client
=======================

[](#marketo-rest-api-client)

Unofficial PHP client for the Marketo.com REST API: . Requires PHP 5.3.3+

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 ex3mp/marketo-rest-client

```

Setup
-----

[](#setup)

The client is built on [Guzzle 3](http://guzzle3.readthedocs.org) and uses a factory method to create an instance. You must specify either a Munchkin ID or the full url.

\####For Rest Api access:

```
use CSD\Marketo\Client;

$client = Client::factory(array(
    'client_id' => 'Marketo client ID',         // required
    'client_secret' => 'Marketo client secret', // required
    'munchkin_id' => '100-AEK-913' // alternatively, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
));
```

\####For Bulk Api access:

```
use CSD\Marketo\Client;

$client = Client::factory(array(
    'client_id' => 'Marketo client ID',         // required
    'client_secret' => 'Marketo client secret', // required
    'munchkin_id' => '100-AEK-913' // alternatively, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
    'bulk' => true // if uploading leads via file upload (e.g. csv)
));
```

Usage
-----

[](#usage)

View the source of `src/Client.php` for all the available methods.

Contributing
------------

[](#contributing)

Please create pull requests. Hopefully pull requests will be reviewed within a couple of days. In general don't merge your own pull requests. Operations will be available with just the addition of a the operation in the `service.json` file as long as you are using `$client->getFoo()->getResult()` but most of the operations have their own access methods with simplified argument handling. Operations do not need to have their own response class unless it does something special. Please respect semantic versioning in this project. That means no break in backwards compatibility unless a major version change is being planned.

Example of the simplest addition of a new operation:

```
{
    "operations": {
        "getFoo": {
            "httpMethod": "GET",
            "uri": "foo.json",
            "parameters": {},
            "responseModel": "baseResponse",
            "responseClass": "CSD\\Marketo\\Response"
        },
}
```

License
-------

[](#license)

This source is licensed under an MIT License, see the LICENSE file for full details. If you use this code, it would be great to hear from you.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~281 days

Recently: every ~341 days

Total

6

Last Release

2794d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1344309?v=4)[Pascal Fr](/maintainers/ex3mp)[@EX3MP](https://github.com/EX3MP)

---

Top Contributors

[![Jaesin](https://avatars.githubusercontent.com/u/159693?v=4)](https://github.com/Jaesin "Jaesin (21 commits)")[![nathanbrauer](https://avatars.githubusercontent.com/u/323945?v=4)](https://github.com/nathanbrauer "nathanbrauer (4 commits)")[![PancakeTornado](https://avatars.githubusercontent.com/u/13861028?v=4)](https://github.com/PancakeTornado "PancakeTornado (4 commits)")[![duellj](https://avatars.githubusercontent.com/u/235855?v=4)](https://github.com/duellj "duellj (3 commits)")[![itmayziii](https://avatars.githubusercontent.com/u/13625506?v=4)](https://github.com/itmayziii "itmayziii (3 commits)")[![paulpullen](https://avatars.githubusercontent.com/u/1668598?v=4)](https://github.com/paulpullen "paulpullen (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ex3mp-marketo-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/ex3mp-marketo-rest-client/health.svg)](https://phpackages.com/packages/ex3mp-marketo-rest-client)
```

###  Alternatives

[dchesterton/marketo-rest-api

A PHP client for the Marketo.com REST API

41844.1k1](/packages/dchesterton-marketo-rest-api)[coincheck/coincheck

Bindings of coincheck API

202.2k](/packages/coincheck-coincheck)

PHPackages © 2026

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