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

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

pmatseykanets/marketo-client
============================

Marketo REST API Client

v0.1.4(7y ago)3831[1 PRs](https://github.com/pmatseykanets/marketo-client-php/pulls)MITPHPPHP &gt;=7.1.3

Since Nov 15Pushed 2y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Marketo REST API PHP Client \[WIP\]
===================================

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

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/121cedcc1a1093942dc58c2ce0e61fe7c1f9b2847bc4a9b6024a23af2358562a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706d61747365796b616e6574732f6d61726b65746f2d636c69656e742d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pmatseykanets/marketo-client-php)

It's work in progress. Use at your own risk.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Marketo REST API Coverage](#marketo-rest-api-coverage)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require pmatseykanets/marketo-client
```

Usage
-----

[](#usage)

When instantiating a client you can pass an array of following parameters

- `client_id`
- `client_secret`
- `base_url`
- `partner_id` (optional)

```
$config = [
    // required (credentials below are not real)
    'client_id' => '02d92ff0-9d94-4de7-b152-3df68969b947',
    'client_secret' => 'bB6wmEvjlsfVr1Vs3NfGwSD9HL2AAHzZ',
    'url' => 'https://123-XYZ-456.mktorest.com'
    // optional
    'partner_id' => '123456789'
];

$marketo = new Client($config);
```

Alternatively the client can read parameters from the following environment variables

- `MARKETO_CLIENT_ID`
- `MARKETO_CLIENT_SECRET`
- `MARKETO_URL`
- `MARKETO_PARTNER_ID`

```
$marketo = new Client();
```

Endpoints that may have multiple pages of results return [generators](https://secure.php.net/manual/en/language.generators.overview.php)so they can be easily iterated over

```
$request = $marketo->leadDatabase()->getLists();
foreach ($request->send() as $response) {
    foreach ($response->result ?? [] as $list) {
        // do something with a list
    }
}
```

Marketo REST API Coverage
-------------------------

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

- LeadDatabase
    - Activities
        - GetActivities
        - GetActivityTypes
        - GetDeletedActivities
        - GetLeadChangesActivities
        - GetPagingToken
        - AddCustomActivities
        - CreateCustomActivityType
        - DeleteCustomActivityType
        - DiscardCustomActivityTypeDraft
        - UpdateCustomActivityType
        - ApproveCustomActivityType
        - CreateCustomActivityTypeAttributes
        - DeleteCustomActivityTypeAttributes
        - UpdateCustomActivityTypeAttributes
    - BulkCustomObjects
    - BulkExportActivities
    - BulkExportLeads
    - BulkLeads
    - Campaigns
        - FindCampaign
        - GetCampaigns
        - ScheduleCampaign
        - TriggerCampaign
    - Companies
        - DescribeCompany
        - GetCompanies
        - SyncCompanies
        - DeleteCompanies
    - CustomObjects
        - DeleteCustomObjects
        - DescribeCustomObject
        - GetCustomObjects
        - GetCustomObjectTypes
        - SyncCustomObjects
    - Leads
        - AssociateLead
        - DeleteLeads
        - DescribeLead
        - GetLeadPartitions
        - GetLeads
        - MergeLeads
        - PushLeads
        - SyncLeads
        - UpdateLeadPartition
        - GetLeadsByProgramId
        - ChangeLeadProgramStatus
    - Lists
        - AddToList
        - DeleteFromList
        - FindList
        - GetListLeads
        - GetLists
        - IsListMember
    - NamedAccountLists
    - NamedAccounts
    - Opportunities
    - SalesPersons
    - Usage
- Assets
    - Channels
    - EmailTemplates
    - Emails
    - FileContents
    - Files
    - Folders
    - FormFields
    - Forms
    - LandingPageContent
    - LandingPageTemplates
    - LandingPages
    - Programs
    - Segments
    - SmartCampaigns
    - SmartLists
    - StaticLists
    - Tags
    - Tokens
- Identity
    - GetOAuthToken

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information about what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Peter Matseykanets](https://github.com/pmatseykanets)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

5

Last Release

2732d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/779965?v=4)[Peter Matseykanets](/maintainers/pmatseykanets)[@pmatseykanets](https://github.com/pmatseykanets)

---

Top Contributors

[![pmatseykanets](https://avatars.githubusercontent.com/u/779965?v=4)](https://github.com/pmatseykanets "pmatseykanets (20 commits)")

---

Tags

apiapi-clientmarketomarketo-rest-apiphpapiclientrestMarketo

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[printu/customerio

PHP API for Customer.io

241.1M2](/packages/printu-customerio)[rastor/jira-client

A simple PHP JIRA REST client

2070.7k](/packages/rastor-jira-client)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[jonathanraftery/bullhorn-rest-client

Simple REST client for the Bullhorn API, including automated OAuth2 login

1142.7k](/packages/jonathanraftery-bullhorn-rest-client)[repat/plentymarkets-rest-client

REST Client for Plentymarkets

1510.0k](/packages/repat-plentymarkets-rest-client)

PHPackages © 2026

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