PHPackages                             cra/marketo-api - 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. cra/marketo-api

ActiveLibrary[API Development](/categories/api)

cra/marketo-api
===============

Unofficial Marketo API PHP library.

0.3.0(5mo ago)112.0k↓15.9%5[1 PRs](https://github.com/cra-repo/marketo-api-php/pulls)MITPHPPHP ^7.4 | ^8.0CI passing

Since Oct 1Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/cra-repo/marketo-api-php)[ Packagist](https://packagist.org/packages/cra/marketo-api)[ RSS](/packages/cra-marketo-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

marketo-api-php
===============

[](#marketo-api-php)

Unofficial Marketo API PHP library.

Installation
============

[](#installation)

Composer
--------

[](#composer)

```
composer require cra/marketo-api

```

Manual download
---------------

[](#manual-download)

Run `composer install` in the library directory and then require `PATH_TO_LIBRARY/vendor/autoload.php` in your project.

Usage
=====

[](#usage)

First, you need to initialise and authenticate client.

```
use Cra\MarketoApi\Client;

$client = (new Client($config))->authenticate();
```

`$config` must have the following fields `restBaseUrl`, `identityBaseUrl`, `clientId`, and `clientSecret`. See Examples section below for more information on the fields.

Then `$client` will be passed to API endpoint classes. E.g.:

```
use Cra\MarketoApi\Endpoint\Asset\Folder;

$folderEndpoint = new Folder($client);
$folder = $folderEndpoint->queryByName('My awesome folder');
$folders = $folderEndpoint->browse($folder->folderId());
```

Examples
--------

[](#examples)

To run examples from `/examples` directory put the following `config.json` file in the repository root:

```
{
  "restBaseUrl": "REST BASE URL copied from Marketo dashboard including /rest",
  "identityBaseUrl": "REST BASE URL copied from Marketo dashboard including /identity",
  "clientId": "CLIENT ID from Marketo dashboard",
  "clientSecret": "CLIENT SECRET from Marketo dashboard"
}
```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance75

Regular maintenance activity

Popularity29

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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 ~152 days

Recently: every ~63 days

Total

11

Last Release

172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15298bc013b57defe9e8a2a1907694914ecd60fa267c18e006299be52c612db5?d=identicon)[cra](/maintainers/cra)

---

Top Contributors

[![guvkon](https://avatars.githubusercontent.com/u/2995141?v=4)](https://github.com/guvkon "guvkon (33 commits)")[![Zinkutal](https://avatars.githubusercontent.com/u/10223409?v=4)](https://github.com/Zinkutal "Zinkutal (5 commits)")[![m3ltman](https://avatars.githubusercontent.com/u/53851873?v=4)](https://github.com/m3ltman "m3ltman (3 commits)")[![fialka](https://avatars.githubusercontent.com/u/3896197?v=4)](https://github.com/fialka "fialka (1 commits)")[![VladislavDotwrk](https://avatars.githubusercontent.com/u/177017782?v=4)](https://github.com/VladislavDotwrk "VladislavDotwrk (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cra-marketo-api/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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