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.5.0(2d ago)113.7k↑30.2%6MITPHPPHP ^7.4 | ^8.0CI failing

Since Oct 1Pushed 2d 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 yesterday

READMEChangelog (10)Dependencies (12)Versions (15)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

53

—

FairBetter than 96% of packages

Maintenance100

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.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 ~144 days

Recently: every ~89 days

Total

13

Last Release

2d 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 (2 commits)")[![atmosphere1337](https://avatars.githubusercontent.com/u/86868259?v=4)](https://github.com/atmosphere1337 "atmosphere1337 (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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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