PHPackages                             smart-contact/trustpilot-api-service - 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. smart-contact/trustpilot-api-service

ActiveLibrary[API Development](/categories/api)

smart-contact/trustpilot-api-service
====================================

PHP API Service for Trustpilot

v1.2.1(2y ago)0212MITPHPPHP ^8.1

Since Sep 22Pushed 2y agoCompare

[ Source](https://github.com/smart-contact/trustpilot-api-service)[ Packagist](https://packagist.org/packages/smart-contact/trustpilot-api-service)[ Docs](https://github.com/smart-contact/trustpilot-api-service)[ RSS](/packages/smart-contact-trustpilot-api-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (0)

PHP Trustpilot API Service
==========================

[](#php-trustpilot-api-service)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9ddc6effc996bd23a45550faba3260e36c862b476b82c93905c2af74c1f4d37a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6172742d636f6e746163742f747275737470696c6f742d6170692d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-contact/trustpilot-api-service)[![Total Downloads](https://camo.githubusercontent.com/73a7b6c0bde89656299a19d4c7448b28634e3664d5d169b07fa321fdba65173d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6172742d636f6e746163742f747275737470696c6f742d6170692d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-contact/trustpilot-api-service)[![GitHub Actions](https://github.com/smart-contact/trustpilot-api-service/actions/workflows/main.yml/badge.svg)](https://github.com/smart-contact/trustpilot-api-service/actions/workflows/main.yml/badge.svg)

PHP Service class for trustpilot APIs.

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

[](#installation)

You can install the package via composer:

```
composer require smart-contact/trustpilot-api-service
```

Usage
-----

[](#usage)

To use this class you have to pass this information: business unit ID, API KEY, API Secret, your username and password.

All the available methods try to follow the same name as the API documentation. All 'GET' requests, accept a param as query params and use the same keys as documentation. All 'POST' requests, accept 2 params, data and options(optional), same as query params, all keys are equal to the documentation.

```
use SmartContact/TrustpilotApiService/TrustpilotApiService;

$trustpilotService = new TrustpilotApiService();

$trustpilotService->init([
  'business_unit_id' => '123456789',
  'api_key' => 'abcdefghijklmnopqrstuvwxyz',
  'api_secret' => '123456789abcdefghi',
  'username' => 'user@trustpilot.com',
  'password' => 'P4ssw0rd'
]);

//authenticate to get a valid token
$trustpilotService->authenticate(); // if you use the same instance, once you have authenticated the service will automatically refresh the token when it is expired

//get invitation templates
$data = $trustpilotService->getInvitationTemplates();

var_dump($data['templates']);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Federico Mameli](https://github.com/smart-contact)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com) by [Beyond Code](http://beyondco.de/).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~26 days

Total

14

Last Release

849d ago

Major Versions

v0.6.0 → v1.0.02024-01-09

PHP version history (2 changes)v0.1.0PHP ^7.4|^8.0

v0.4.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![fm96-dev](https://avatars.githubusercontent.com/u/37149443?v=4)](https://github.com/fm96-dev "fm96-dev (19 commits)")

---

Tags

Trustpilottrustpilot apismart-contacttrustpilot-api-servicetrustpilot api php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smart-contact-trustpilot-api-service/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M718](/packages/statamic-cms)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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