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. [API Development](/categories/api)
4. /
5. rdoepner/cleverreach

ActiveLibrary[API Development](/categories/api)

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

CleverReach REST API v3 client

v1.7.0(2y ago)34332.9k↓54.8%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 2d 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 88% 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

1069d 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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[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)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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