PHPackages                             retrochaos/trustpilot-invitation-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. retrochaos/trustpilot-invitation-api

ActiveLibrary[API Development](/categories/api)

retrochaos/trustpilot-invitation-api
====================================

A PHP library for accessing the Trustpilot Invitation API

2.0.0(7mo ago)011MITPHPPHP &gt;= 8.2

Since Feb 20Pushed 7mo agoCompare

[ Source](https://github.com/RetroChaos/TrustpilotInvitationApi)[ Packagist](https://packagist.org/packages/retrochaos/trustpilot-invitation-api)[ RSS](/packages/retrochaos-trustpilot-invitation-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Trustpilot Invitation API Client
================================

[](#trustpilot-invitation-api-client)

A PHP library for accessing the [Trustpilot Invitation API](https://developers.trustpilot.com/invitation-api).

Originally developed and open-sourced by [moneymaxim](https://www.moneymaxim.co.uk).

Fully modernised to:

- Use **Symfony HTTP Client**
- Provide **type-safe error handling**

Install
-------

[](#install)

Install using [Composer](https://getcomposer.org/):

```
composer install retrochaos/trustpilot-invitation-api
```

Usage
-----

[](#usage)

```
use Trustpilot\Api\Authenticator\Authenticator;
use Trustpilot\Api\Invitation\Client;
use Trustpilot\Api\Invitation\Recipient;
use Trustpilot\Api\Invitation\Sender;
use Trustpilot\Api\Invitation\Context;

$authenticator = new Authenticator();
$accessToken = $authenticator->getAccessToken($apiKey, $apiToken, $username, $password);

$client = new Client($accessToken);

$context = new Context($businessUnitId, $templateId, $redirectUri);
// The last two arguments to the Context constructor ($tags and $locale) are optional
// $context = new Context($templateId, $redirectUri, $tags = array(), $locale = 'en-US');

$recipient = new Recipient($recipientEmail, $recipientName);
$sender    = new Sender($senderEmail, $senderName, $replyTo);

$client->invite($context, $recipient, $sender, $reference) /* : array */
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance63

Regular maintenance activity

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~637 days

Total

2

Last Release

226d ago

Major Versions

1.0.0 → 2.0.02025-11-18

PHP version history (2 changes)1.0.0PHP ^7.4 | ^8.0

2.0.0PHP &gt;= 8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1346654?v=4)[Sam Hawes](/maintainers/RetroChaos)[@RetroChaos](https://github.com/RetroChaos)

---

Top Contributors

[![AndrewCarterUK](https://avatars.githubusercontent.com/u/6486835?v=4)](https://github.com/AndrewCarterUK "AndrewCarterUK (2 commits)")[![RetroChaos](https://avatars.githubusercontent.com/u/1346654?v=4)](https://github.com/RetroChaos "RetroChaos (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/retrochaos-trustpilot-invitation-api/health.svg)

```
[![Health](https://phpackages.com/badges/retrochaos-trustpilot-invitation-api/health.svg)](https://phpackages.com/packages/retrochaos-trustpilot-invitation-api)
```

###  Alternatives

[storyblok/php-management-api-client

Storyblok PHP Client for Management API

1233.5k3](/packages/storyblok-php-management-api-client)

PHPackages © 2026

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