PHPackages                             generationtux/marketo-rest-api-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. [HTTP &amp; Networking](/categories/http)
4. /
5. generationtux/marketo-rest-api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

generationtux/marketo-rest-api-client
=====================================

Marketo Rest Api Client

v0.0.5(9y ago)3253.7k11MITPHP

Since Nov 2Pushed 8y ago19 watchersCompare

[ Source](https://github.com/generationtux/marketo-rest-api-client)[ Packagist](https://packagist.org/packages/generationtux/marketo-rest-api-client)[ Docs](https://github.com/generationtux/marketo-rest-api-client)[ RSS](/packages/generationtux-marketo-rest-api-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (6)Used By (1)

Marketo Rest Api Client
=======================

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

[![Build Status](https://camo.githubusercontent.com/a01b4bdf225fb7cc9074a3ca3028c6c33b7c8956622123063d48013ae1e61c45/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f67656e65726174696f6e7475782f6d61726b65746f2d726573742d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a01b4bdf225fb7cc9074a3ca3028c6c33b7c8956622123063d48013ae1e61c45/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f67656e65726174696f6e7475782f6d61726b65746f2d726573742d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)

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

[](#installation)

`composer require generationtux/marketo-rest-api-client`

Usage
-----

[](#usage)

### Instantiation

[](#instantiation)

```
$client = new Client([
    'api_url' => 'foo.bar/api',
    'client_id' => 'foobarid',
    'client_secret' => 'foobarsecret'
]);
```

### Creating a lead

[](#creating-a-lead)

Click [here](http://developers.marketo.com/rest-api/lead-database/fields/list-of-standard-fields/) to find all valid fields for leads.

```
$client->leads()->create([
    [
      'firstName' => 'Joe',
      'lastName'  => 'Bar',
      'email'     => 'foolead1@bar.com'
    ],
    [
      'firstName' => 'Sally',
      'lastName'  => 'Bar',
      'email'     => 'foolead2@bar.com'
    ]
]);
```

### Getting a lead

[](#getting-a-lead)

```
$lead = $client->leads()->show('fooemail@bar.com'); // outputs an object with all valid information on the lead

$lead->email; // outputs 'fooemail@bar.com'
```

### Triggering a campaign

[](#triggering-a-campaign)

To trigger a campaign, provide the campaign id, the email of the lead that will receive the campaign email, and an array of tokens (variables) for the template email belonging to the campaign

```
$client-campaign()
    ->trigger(1234, 'foobar@email.com',
        [
            '{{my.name}}' => 'Foo'
        ]
    );
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.5% 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 ~5 days

Total

5

Last Release

3503d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1020137?v=4)[Damien Russell](/maintainers/Olofguard)[@Olofguard](https://github.com/Olofguard)

![](https://www.gravatar.com/avatar/00ecfc3405548aab669dc6966e8a3a55af93dfb4bfe7095ce318a763a323eeeb?d=identicon)[kylegferg](/maintainers/kylegferg)

![](https://www.gravatar.com/avatar/da77b24b3e21b501a4cbda34c86d8154cba42d6960f4a669ff54016e950bbd91?d=identicon)[troyharvey](/maintainers/troyharvey)

![](https://avatars.githubusercontent.com/u/8932380?v=4)[Kyle Nieber](/maintainers/knieber)[@knieber](https://github.com/knieber)

---

Top Contributors

[![knieber](https://avatars.githubusercontent.com/u/8932380?v=4)](https://github.com/knieber "knieber (43 commits)")[![kyleferguson](https://avatars.githubusercontent.com/u/4224075?v=4)](https://github.com/kyleferguson "kyleferguson (3 commits)")[![jarstingstall](https://avatars.githubusercontent.com/u/4945353?v=4)](https://github.com/jarstingstall "jarstingstall (1 commits)")

---

Tags

apirestMarketogenerationtux

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jlevers/selling-partner-api

PHP client for Amazon's Selling Partner API

4335.4M2](/packages/jlevers-selling-partner-api)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.6M18](/packages/xeroapi-xero-php-oauth2)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34199.5k2](/packages/onesignal-onesignal-php-api)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.0k38](/packages/dreamfactory-df-core)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1194.4k](/packages/zenditplatform-zendit-php-sdk)

PHPackages © 2026

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