PHPackages                             softopia/trustpilot-unofficial-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. softopia/trustpilot-unofficial-api

ActiveLibrary[API Development](/categories/api)

softopia/trustpilot-unofficial-api
==================================

Unofficial Trustpilot Api to fetch reviews and trust score.

0.1.0(3y ago)2702MITPHPPHP &gt;=7.1

Since Jul 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/softopia-tech/trustpilot-unofficial-api)[ Packagist](https://packagist.org/packages/softopia/trustpilot-unofficial-api)[ Docs](https://github.com/softopia-tech/trustpilot-unofficial-api)[ RSS](/packages/softopia-trustpilot-unofficial-api/feed)WikiDiscussions main Synced 4d ago

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

Updated on 05-07-2024
=====================

[](#updated-on-05-07-2024)

Just checekd this randomly and It still works.

Unofficial Trustpilot Api For PHP
=================================

[](#unofficial-trustpilot-api-for-php)

Unofficial Trustpilot Api to fetch reviews and trust score.

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

[](#installation)

You can install the package via composer:

```
composer require softopia/trustpilot-unofficial-api
```

Usage
-----

[](#usage)

```
//use namespace
use Softopia\TrustApi\TrustApi;

//create an instance
$trust = new TrustApi('example.com');

//get average rating
$trust->getRating();

//get reviews count
$trust->getReviewsCount();

//get All reviews (max 600 reviews or you can say 30 pages)
$trust->getAllReviews($wantJson = true); //false if you want array back
```

Response Format
---------------

[](#response-format)

```
[
  {
    "reviewId": "xxxxxxxxxxx",
    "reviewUrl": "https://www.trustpilot.com/reviews/xxxxxxxxxxxx",
    "rating": 5,
    "reviewTitle": "Nice work",
    "reviewBody": "Nice work!!!!",
    "customer": {
      "id": "xxcxcxcxc",
      "name": "Nice name",
      "image": "https://user-images.trustpilot.com/xxxxxxxxx/73x73.png"
    }
  }
]
```

### Testing

[](#testing)

```
//TODO
```

Credits
-------

[](#credits)

- [Ravi](https://github.com/softopia-tech)
- [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).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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 ~152 days

Total

3

Last Release

1457d ago

PHP version history (2 changes)0.0.1PHP ^7.1

0.0.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/67470b9979f63b250d1305c0b5715067e3d95e13e13885f9ba0c1ca57088b522?d=identicon)[softopia-tech](/maintainers/softopia-tech)

---

Top Contributors

[![rvibit](https://avatars.githubusercontent.com/u/108622373?v=4)](https://github.com/rvibit "rvibit (6 commits)")[![softopia-tech](https://avatars.githubusercontent.com/u/26953455?v=4)](https://github.com/softopia-tech "softopia-tech (4 commits)")

---

Tags

softopiatrustpilot-unofficial-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/softopia-trustpilot-unofficial-api/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[jikan-me/jikan

Jikan is an unofficial MyAnimeList API

1.0k28.1k2](/packages/jikan-me-jikan)[dfridrich/ares

Communication with ARES (Czech business register)

24401.0k2](/packages/dfridrich-ares)[reliqarts/laravel-scavenger

The most integrated web scraper package for Laravel.

1571.5k](/packages/reliqarts-laravel-scavenger)

PHPackages © 2026

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