PHPackages                             rdoepner/cleverreach - 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. rdoepner/cleverreach

ActiveLibrary

rdoepner/cleverreach
====================

CleverReach REST API v3 client

v1.7.0(2y ago)34327.0k↓22.5%13[2 issues](https://github.com/rdoepner/cleverreach/issues)[1 PRs](https://github.com/rdoepner/cleverreach/pulls)MITPHPCI failing

Since Oct 21Pushed 2y ago5 watchersCompare

[ Source](https://github.com/rdoepner/cleverreach)[ Packagist](https://packagist.org/packages/rdoepner/cleverreach)[ Docs](https://github.com/rdoepner/cleverreach)[ RSS](/packages/rdoepner-cleverreach/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

CleverReach REST API v3 client
==============================

[](#cleverreach-rest-api-v3-client)

This library makes it easy to interact with the CleverReach REST API v3.

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

[](#installation)

```
composer require rdoepner/cleverreach
```

Usage
-----

[](#usage)

**Get an access token**

```
use rdoepner\CleverReach\ApiManager;
use rdoepner\CleverReach\Http\Guzzle as HttpAdapter;

// Create an HTTP adapter
$httpAdapter = new HttpAdapter();

// Authorize your app by credentials
$response = $httpAdapter->authorize('', '');

if (isset($response['access_token'])) {
    // Persist the access token for later use...
}
```

**Initialize an API manager**

```
use rdoepner\CleverReach\ApiManager;
use rdoepner\CleverReach\Http\Guzzle as HttpAdapter;

// Create an HTTP adapter
$httpAdapter = new HttpAdapter(
    [
        'access_token' => '',
    ]
);

// Create the API manager
$apiManager = new ApiManager($httpAdapter);
```

**Create an inactive subscriber**

```
$response = $apiManager->createSubscriber(
    '',
    '',
    false, // not activated
    [
        'salutation' => 'Mr.',
        'firstname' => 'John',
        'lastname' => 'Doe',
    ],
    [], // global attributes
    'Source',
    ['tagX'] // tags
);

if (isset($response['id'])) {
    // ...
}
```

**Update a subscriber**

```
$response = $apiManager->updateSubscriber(
    '',
    '',
    [
        'salutation' => 'Mr.',
        'firstname' => 'John',
        'lastname' => 'Doe',
    ],
    [], // global attributes
    'Source',
    ['tagX'] // tags
);

if (isset($response['id'])) {
    // ...
}
```

**Trigger the Double-Opt-In email for an inactive subscriber**

```
$response = $apiManager->triggerDoubleOptInEmail('', '');

if (isset($response['success'])) {
    // ...
}
```

**Trigger the Double-Opt-Out email for an active subscriber**

```
$response = $apiManager->triggerDoubleOptOutEmail('', '');

if (isset($response['success'])) {
    // ...
}
```

**Get subscriber**

```
$response = $apiManager->getSubscriber('', '');

if (isset($response['id'])) {
    // ...
}
```

**Sets the active status of a subscriber**

```
$response = $apiManager->setSubscriberStatus('', '', '');

if (true === $response) {
    // ...
}
```

**Delete a subscriber**

```
$response = $apiManager->deleteSubscriber('', '');

if (true === $response) {
    // ...
}
```

**Get attributes**

```
$response = $apiManager->getAttributes('');

if (true === $response) {
    // ...
}
```

**Update the attributes of a subscriber**

```
$response = $apiManager->updateSubscriberAttributes('', '', '');

if (true === $response) {
    // ...
}
```

**Replace the tags of a subscriber**

```
$response = $apiManager->replaceSubscriberTags('', '', ['', '', ...]);

if (true === $response) {
    // ...
}
```

**Get the groups a subscriber is in**

```
$response = $apiManager->getSubscriberGroups('');

if (true === $response) {
    // ...
}
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 68.4% 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 ~248 days

Recently: every ~424 days

Total

8

Last Release

1022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d55d7cb6add872ea7a7665f12873036f98b006d3617c961c434a18857d46f84?d=identicon)[rdoepner](/maintainers/rdoepner)

---

Top Contributors

[![rdoepner](https://avatars.githubusercontent.com/u/13964038?v=4)](https://github.com/rdoepner "rdoepner (26 commits)")[![mmoollllee](https://avatars.githubusercontent.com/u/26859300?v=4)](https://github.com/mmoollllee "mmoollllee (4 commits)")[![yunosh](https://avatars.githubusercontent.com/u/379318?v=4)](https://github.com/yunosh "yunosh (2 commits)")[![fabianmu](https://avatars.githubusercontent.com/u/89517?v=4)](https://github.com/fabianmu "fabianmu (2 commits)")[![infinitystacks](https://avatars.githubusercontent.com/u/54512156?v=4)](https://github.com/infinitystacks "infinitystacks (1 commits)")[![grandeljay](https://avatars.githubusercontent.com/u/45571053?v=4)](https://github.com/grandeljay "grandeljay (1 commits)")[![sschlein](https://avatars.githubusercontent.com/u/2911113?v=4)](https://github.com/sschlein "sschlein (1 commits)")[![Cruiser13](https://avatars.githubusercontent.com/u/2771909?v=4)](https://github.com/Cruiser13 "Cruiser13 (1 commits)")

---

Tags

cleverreachnewsletterrest-apiREST APInewslettercleverreach

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rdoepner-cleverreach/health.svg)

```
[![Health](https://phpackages.com/badges/rdoepner-cleverreach/health.svg)](https://phpackages.com/packages/rdoepner-cleverreach)
```

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[rubix/server

Deploy your Rubix ML models to production with scalable stand-alone inference servers.

632.3k](/packages/rubix-server)

PHPackages © 2026

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