Download the PHP package larsnieuwenhuizen/trustpilot without Composer
On this page you can find all versions of the php package larsnieuwenhuizen/trustpilot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larsnieuwenhuizen/trustpilot
More information about larsnieuwenhuizen/trustpilot
Files in larsnieuwenhuizen/trustpilot
Package trustpilot
Short Description PHP library for communication with the Trustpilot API
License MIT
Informations about the package trustpilot
Trustpilot
PHP library for communication with Trustpilot
Under development
This package is currently being developed (12-04-2017)
This package will first only support the public routes which require access through api key. Later on the private requests will be added with oAuth support.
Functioning calls
-
Business units
- Get public business unit
- Get a business unit's reviews
- Get a business unit's categories
- Get a business unit's web links
- Get a list of business units
-
Categories
- Get category
- List business units in category
-
Consumers
- Get a consumer's reviews
- Get the profile of the consumer
- Get the profile of the consumer(with #reviews and weblinks)
Example setup
The configuration class with search for a config.yaml file in the root of the project and use those settings by default.
You can also define a different file using the Configuration constructor like this:
If you've got that file, configuration can be set as such:
If you do not have a yaml file the Configuration can be created using the setters. The setters can always be used to override any Configuration property.
Install via composer
All versions of trustpilot with dependencies
guzzlehttp/guzzle Version ^6.2
guzzlehttp/oauth-subscriber Version ^0.3.0
symfony/yaml Version ^3.2