PHPackages                             notrix/trustpilot-links - 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. notrix/trustpilot-links

ActiveLibrary

notrix/trustpilot-links
=======================

TrustPilot link generation service

03.9k↓100%PHP

Since Jul 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/notrix/php-authenticated-encryption)[ Packagist](https://packagist.org/packages/notrix/trustpilot-links)[ RSS](/packages/notrix-trustpilot-links/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Trustpilot authenticated encryption for PHP
===========================================

[](#trustpilot-authenticated-encryption-for-php)

Library for authenticated encryption used with Trustpilot.

Installation
============

[](#installation)

```
composer require notrix/trustpilot-links

```

Usage
=====

[](#usage)

Autoload with composer or include the Trustpilot class and invoke it:

### Business Generated Links

[](#business-generated-links)

```
    // Domain of your site
    $domain = 'example.com';

    // Get the base64 encoded keys from the Trustpilot site:
    $encryptKey = 'dfkkdfj....';
    $authKey = 'dj83lshi....';

    // The payload with your order data:
    $payload = array(
        'email' => 'john@doe.com',
        'name'  => 'John Doe',
        'ref'   => '1234',
    );

    $trustpilot = new Trustpilot($domain, $encryptKey, $authKey);
    $trustpilotInvitationLink = $trustpilot->getInvitationLink($payload);

    // https://www.trustpilot.com/evaluate-bgl/example.com?p=cGF5bG9hZA==
```

### General Link for embedding reviews iframe

[](#general-link-for-embedding-reviews-iframe)

```
    // Domain of your site
    $domain = 'example.com';

    $trustpilot = new Trustpilot($domain);
    $trustpilotInvitationLink = $trustpilot->getReviewsLink();

    // https://www.trustpilot.com/evaluate/embed/example.com
```

### Unique Link for embedding reviews iframe

[](#unique-link-for-embedding-reviews-iframe)

```
    // Domain of your site
    $domain = 'example.com';

    // Get the Unique Link Secret Key from your Account Manager at Trustpilot
    $secretKey = 'xfkcdfu....';

    // Order information
    $reference = '1234';
    $email = 'john@doe.com';
    $name = 'John Doe';

    $trustpilot = new Trustpilot($domain, null, null, $secretKey);
    $trustpilotInvitationLink = $trustpilot->getUniqueLink($reference, $email, $name);

    // https://www.trustpilot.com/evaluate/embed/example.com?a=1234&b=am9obkBkb2UuY29t&c=John+Doe&e=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![spewu](https://avatars.githubusercontent.com/u/1662016?v=4)](https://github.com/spewu "spewu (3 commits)")

### Embed Badge

![Health badge](/badges/notrix-trustpilot-links/health.svg)

```
[![Health](https://phpackages.com/badges/notrix-trustpilot-links/health.svg)](https://phpackages.com/packages/notrix-trustpilot-links)
```

PHPackages © 2026

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