Download the PHP package scaramangagency/trustpilot without Composer

On this page you can find all versions of the php package scaramangagency/trustpilot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package trustpilot

Trustpilot plugin for Craft CMS 3.x

Requirements

This plugin requires Craft CMS 3.1.0 or later.

Before you begin

The Trustpilot plugin requires a Trustpilot business account that is signed up to the Standard plan, with the Connect module added.

Installing the Trustpilot plugin

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require scaramangagency/trustpilot
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Trustpilot.

You can also visit the Craft Plugin Store, search for Trustpilot and click install.

Configuring Trustpilot

Assigning user permissions

The Trustpilot plugin offers granular user permission, which you must add to existing and new user groups.

Define whether a user and/or user group has permission to:

Plugin settings

The following options are available under the Settings tab:

You can learn how to create your API key and API secret by visiting Trustpilot's own documentation

All values can be set to environment variables.

Using Trustpilot in the Control Panel

Invitations

Send Invitation

Send an invitation to a customer. Enter their email and name (and optionally a redirect URL, if you wanted to send them to a custom thanks page) and hit ‘Send Invitation’. This will tender an email to be sent within one hour.

You can check that reviews have been tendered by going into your Business account dashboard, and visiting Get Revirws > Overview > See full invitation historu.

Generate Review Link

Enter a customer name and email, then click generate to get an invitation link. You can then send the link onto your customer manually.

Reviews

Displays all reviews in your Trustpilot account. You can click ‘Add reply’ to add a reply to the review. If you have already added a reply, you can click ‘Edit Reply’ instead, which lets you edit or delete your existing reply.

Using Trustpilot in your templates

There are a variety of variables you can use in your templates. Note that each variable returns an object without any styling, so it's on the developer to take those object and add the appropriate markup and styling.

On Caching

This plugin will make a request to the Trustpilot API for every request. We recommend that the output of the call can be cached either natively with Craft or with a static page cache (which should already be included on your website if it's been efficiently optimised).

getAllReviews

Return all reviews.

Field Name Description
page When paginating, insert the page you want to retrieve
limit For paginating (or just limiting your result set), select how many reviews to pull from the API
siteId The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the siteId for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current siteId dynamically

Response

getProfile

Get your basic profile information.

Field Name Description
siteId The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the siteId for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current siteId dynamically

Response

getTrustpilotStarImage

Get star images for the Trustpilot account set up on the supplied site ID

Field Name Description
siteId The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the siteId for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current siteId dynamically

Response

getTrustpilotStarText

Get textual representation of the star rating for the Trustpilot account set up on the supplied site ID

Field Name Description
siteId The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the siteId for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current siteId dynamically

Response

getTrustpilotPermalinks

Get the permalinks (profile URL, embed URL) for the Trustpilot account set up on the supplied site ID

Field Name Description
siteId The current site's ID. If you only have one site on your install you can leave this blank, otherwise pass the siteId for the site you have added the authorisation to. You can hard-code the site ID if you have only set up authorisation on one of your multi-site installs, otherwise pass the current siteId dynamically

Response

getTrustpilotIcons

Pull the Trustpilot icon resources

Response

getTrustpilotLogos

Pull the Trustpilot logo resources

Response


Brought to you by Scaramanga Agency


All versions of trustpilot with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.1.0
curl/curl Version ^2.3
putyourlightson/craft-log-to-file Version ^1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package scaramangagency/trustpilot contains the following files

Loading the files please wait ....