Download the PHP package reputify/reputify-php without Composer
On this page you can find all versions of the php package reputify/reputify-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reputify/reputify-php
More information about reputify/reputify-php
Files in reputify/reputify-php
Package reputify-php
Short Description PHP client for the Reputify API (api.reputify.io): reviews, scores, surveys, invitations, embeds, OAuth and webhook verification.
License MIT
Homepage https://api.reputify.io/
Informations about the package reputify-php
Reputify PHP SDK
PHP client for the Reputify API: reviews, scores, surveys, invitations, embeds, video and audio reviews — plus OAuth ("Connect with Reputify") and webhook verification.
- PHP 8.1+,
ext-curl,ext-json. No other dependencies. - Retries rate limits (
429, honouringRetry-After) and, for idempotent calls only, server and network errors. - Typed exceptions, automatic pagination, OAuth refresh with rotating keys.
Quick start
Tokens
| Token | What it can do |
|---|---|
rpf_live_… (team) |
Everything the scopes on the token allow (reviews:read, surveys:write, …). |
rpf_inv_… (survey) |
invites->create() and nothing else. Safe to put in a shop backend. |
OAuth (TokenSet) |
What the customer granted in the connect dialog. One hour, refreshes itself. |
Never put a token into a web page. In the browser, use embeds — they have
their own public key (pk_…):
Invite a customer after an order
Errors
Branch on $e->errorCode, never on the message. Network failures throw
ConnectionException; everything extends ReputifyException.
OAuth: "Connect with Reputify"
For plugins and integrations. Nobody copies a key — the customer clicks Connect, picks a project, and comes back.
The refresh key rotates. Every refresh returns a new one and spends the
old one; presenting a spent key revokes the whole connection. on_refresh
must persist the new pair before it returns. If two processes may refresh
at the same time, guard on_refresh and the request with a lock.
Webhooks
Surveys can call your URL when a review comes in. Verify the raw body:
Resources
| Property | Methods |
|---|---|
projects |
list, get, profile, scoreHistory |
reviews |
list, get, reply, deleteReply |
surveys |
list, get, create, update, insights, recipients |
invites |
create |
analysis |
sentiment, findings, summary, figures |
embeds |
catalog, list, create, update, renderUrl (static) |
recordings |
list, get, feature, exports, createExport, prompts |
awards |
list |
feedback |
list |
catalog |
platformTypes, industries |
site |
get, surveys, invites, setIndustry, loginLink |
Anything else: $reputify->request('GET', 'v1/…', $query, $body).
Rate limit of the last call: $reputify->rateLimit(). Full reference:
https://api.reputify.io/.
Custom HTTP client
Implement Reputify\Http\Transport (one method) to send through Guzzle,
WordPress' wp_remote_request or a test double, and pass it as
['transport' => …].
Development
All versions of reputify-php with dependencies
ext-curl Version *
ext-json Version *