PHPackages                             roichamp/php-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. [API Development](/categories/api)
4. /
5. roichamp/php-client

ActiveLibrary[API Development](/categories/api)

roichamp/php-client
===================

A PHP wrapper for the RoiChamp REST API

1.0.3(4y ago)041MITPHPPHP &gt;= 5.4.0

Since Apr 26Pushed 4y ago2 watchersCompare

[ Source](https://github.com/RoiChamp/php-client)[ Packagist](https://packagist.org/packages/roichamp/php-client)[ Docs](https://roichamp.com)[ RSS](/packages/roichamp-php-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

RoiChamp API - PHP Client
=========================

[](#roichamp-api---php-client)

A PHP wrapper for the RoiChamp REST API. Easily interact with the RoiChamp REST API securely using this library.

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

[](#installation)

```
composer require roichamp/php-client

```

Getting started
---------------

[](#getting-started)

To get your API key contact us on

Client class
------------

[](#client-class)

```
$roichamp = new \RoiChamp\Client([
    'token' => 'API_KEY'
]);
```

Client methods
--------------

[](#client-methods)

### Subscriber Upsert

[](#subscriber-upsert)

```
$roichamp->upsertSubscriber([
    'email' => 'office@roichamp.com',
    'first_name' => 'Roi',
    'last_name' => 'Champ',
    'phone' => '+381123123',
    'metaData' => [
        'source' => 'google'
    ],
])
```

#### Arguments

[](#arguments)

ParamsTypeRequiredDescription`email``string`yesSubscriber email address.`first_name``string`noSubscriber first name.`last_name``string`noSubscriber last name.`phone``string`noSubscriber phone number.`metaData``array`noKey-value custom meta data.### Subscriber Unsubscribe

[](#subscriber-unsubscribe)

```
$roichamp->unsubscribe('office@roichamp.com')
```

#### Arguments

[](#arguments-1)

ParamsTypeRequiredDescription`email``string`yesSubscriber email address.### Category Upsert

[](#category-upsert)

```
$roichamp->upsertProduct([
    'identity' => '42141',
    'title' => 'Product title',
    'image' => '...',
    'permalink' => '...',
    'suggest' => 1,
    'metaData' => [
        'foo' => 'bar'
    ],
])
```

### Product Upsert

[](#product-upsert)

```
$roichamp->upsertProduct([
    'identity' => '14214',
    'title' => 'Product title',
    'price' => 199,
    'price_promo' => 99,
    'currency' => 'USD',
    'image' => '...',
    'permalink' => '...',
    'content' => 'Product description',
    'suggest' => 1,
    'categoryIdentities' => ['42141'],
    'metaData' => [
        'foo' => 'bar'
    ],
])
```

### Send transactional email

[](#send-transactional-email)

```
$roichamp->sendEmail([
    'identity' => 'reset_password',
    'to' => 'office@roichamp.com',
    'params' => [
        'reset_url' => '...',
    ],
])
```

#### Arguments

[](#arguments-2)

ParamsTypeRequiredDescription`identity``string`yesEmail identity.`email``string`yesSubscriber email address.`params``array`noKey-value custom email params.Release History
---------------

[](#release-history)

- 2021-04-26 - 1.0.0 - Pre-release.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~7 days

Total

4

Last Release

1824d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4b85dbc3185dd4728d6ecb97f87cf0a3443cfd578984c3a5392eb94f16e90e8?d=identicon)[roichamp](/maintainers/roichamp)

---

Tags

phpapiemail marketingRoiChamp

### Embed Badge

![Health badge](/badges/roichamp-php-client/health.svg)

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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