PHPackages                             crasp/trustpilot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. crasp/trustpilot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crasp/trustpilot
================

trustpilot爬取business后台的评论数据

v1.0.2(3y ago)1135PHP

Since Oct 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/crasphbb/trustpilot)[ Packagist](https://packagist.org/packages/crasp/trustpilot)[ RSS](/packages/crasp-trustpilot/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Trustpilot
==========

[](#trustpilot)

用户模拟登录trustpilot后台，抓取trustpilot评论的功能

### 安装

[](#安装)

```
composer require crasp/trustpilot

```

### 使用

[](#使用)

```
$config = [
    "email"       => "support@dddm.com",
    "password"    => "YocgdddR8x8ddC4cn",
    'client_id'   => 'nZkt0UMZddddd9AOcviMZDmIfiI2L0x',
    'key'         => 'AIzaSyDzjddddbOR_CVaH8EGSvO0',
    'business_id' => '62561753ddd21d2f',
];
$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);

```

#### 拉取最新评论

[](#拉取最新评论)

```
try {
    $result = $trustpilot->search(1, 1, [
    'begin_time' => '2022-10-17 17:53:00',
    'end_time' => '2022-10-27 17:53:00',
    ]);
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

```

#### 添加回复 &amp;&amp; 修改评论

[](#添加回复--修改评论)

```

$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);
try {
    $result = $trustpilot->reply("aafsa","大大士大夫安抚撒发的啥地方稍等阿萨德");
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

```

#### 删除回复

[](#删除回复)

```

$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);
try {
    $result = $trustpilot->replyDelete("aafsa","大大士大夫安抚撒发的啥地方稍等阿萨德");
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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

Total

3

Last Release

1223d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bea348264d613738f13fa0d2ac83b561acdb32a44d1d6556436dcde14f7e257?d=identicon)[crasphbb](/maintainers/crasphbb)

---

Top Contributors

[![crasphbb](https://avatars.githubusercontent.com/u/109793892?v=4)](https://github.com/crasphbb "crasphbb (13 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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