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

ActiveLibrary[API Development](/categories/api)

moneymaxim/trustpilot-invitation-api
====================================

A PHP library for accessing the Trustpilot Invitation API

v0.1.1(10y ago)129.1k↓50%10[1 PRs](https://github.com/moneymaxim/TrustpilotInvitationApi/pulls)MITPHPPHP &gt;=5.5.0

Since Jan 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/moneymaxim/TrustpilotInvitationApi)[ Packagist](https://packagist.org/packages/moneymaxim/trustpilot-invitation-api)[ RSS](/packages/moneymaxim-trustpilot-invitation-api/feed)WikiDiscussions master Synced 1mo ago

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

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/51b990e645370da09fb2556027aa88afda7bae0f53caef323eb308a75c3b4b28/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e65796d6178696d2f747275737470696c6f742d696e7669746174696f6e2d6170692f762f737461626c65)](https://packagist.org/packages/moneymaxim/trustpilot-invitation-api)[![Total Downloads](https://camo.githubusercontent.com/6ae34ba600bf299cb674dc2a36572c3102a7c204fad7617bb97075e67e964350/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e65796d6178696d2f747275737470696c6f742d696e7669746174696f6e2d6170692f646f776e6c6f616473)](https://packagist.org/packages/moneymaxim/trustpilot-invitation-api)[![License](https://camo.githubusercontent.com/ce8e5e1bf64124b7d746722070bdd2eb34c9a249280dc239505d007bdad5943b/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e65796d6178696d2f747275737470696c6f742d696e7669746174696f6e2d6170692f6c6963656e7365)](https://packagist.org/packages/moneymaxim/trustpilot-invitation-api)

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

This library has been developed and open sourced by [moneymaxim](https://www.moneymaxim.co.uk).

We are currently on the look out for PHP programming talent, so please [get in touch](mailto:andrew.carter@moneymaxim.co.uk) if you are interested.

Install
-------

[](#install)

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

```
composer install moneymaxim/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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3757d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e7abce428a9dc9c76f4275ca8d8d11ad55138d72f3e3e2b01c6b2da5b479cc0?d=identicon)[AndrewCarterUK](/maintainers/AndrewCarterUK)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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