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

ActiveProject[API Development](/categories/api)

valentinfily/trustpilot-invitation-api
======================================

A PHP library for accessing the Trustpilot Invitation API and fetching recieved Product reviews

2.0.0(8y ago)0497MITPHPPHP &gt;=5.6.0

Since Jan 28Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (6)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/932b9578345e68648822262e739875ca7d14bfb85117fdbea3689516cf211b06/68747470733a2f2f706f7365722e707567782e6f72672f69747370697269742f747275737470696c6f742d696e7669746174696f6e2d6170692f762f737461626c65)](https://packagist.org/packages/itspirit/trustpilot-invitation-api)[![Total Downloads](https://camo.githubusercontent.com/212c9428d646e4cea86320c2281e2c678d13e853cd0af62924cc449cca63ec33/68747470733a2f2f706f7365722e707567782e6f72672f69747370697269742f747275737470696c6f742d696e7669746174696f6e2d6170692f646f776e6c6f616473)](https://packagist.org/packages/itspirit/trustpilot-invitation-api)[![License](https://camo.githubusercontent.com/40de56bb4f89bcb004a1cc85ab6440de7af1d7b3267cd6d4cbc0ecf2c067a250/68747470733a2f2f706f7365722e707567782e6f72672f69747370697269742f747275737470696c6f742d696e7669746174696f6e2d6170692f6c6963656e7365)](https://packagist.org/packages/itspirit/trustpilot-invitation-api)[![composer.lock available](https://camo.githubusercontent.com/dac3fc52d75e1a64f0ff0ac8ecdfe51192ff3d6c10e73af31660dd12ae7ba37c/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f636f6d706f7365726c6f636b)](https://packagist.org/packages/phpunit/phpunit)

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

Install
-------

[](#install)

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

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

Usage Invitation
----------------

[](#usage-invitation)

```
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($apiKey, $apiToken, $username, $password);
$accessToken = $authenticator->getAccessToken();

$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 */
```

Usage fetch Product reviews
---------------------------

[](#usage-fetch-product-reviews)

```
use Trustpilot\Api\Authenticator\Authenticator;
use Trustpilot\Api\Invitation\Client;

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

$client = new Client($accessToken);

$reviews = $client->getProductReviews(TRUSTPILOT_BUSINESS_UNIT_ID, null,
                ['published', 'unpublished', 'underModeration', 'archived'], 'de', $page, 100)
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~155 days

Total

5

Last Release

3136d ago

Major Versions

0.2.0 → 1.0.02017-07-13

1.0.0 → 2.0.02017-10-08

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

0.2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/34483a684836590b2c2c894d707afc2ff87ef36d0199de51436ae3c87a7447e2?d=identicon)[valfily](/maintainers/valfily)

---

Top Contributors

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

---

Tags

apireviewInvitationTrustpilot

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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