Download the PHP package shutterstock/presto without Composer
On this page you can find all versions of the php package shutterstock/presto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shutterstock/presto
More information about shutterstock/presto
Files in shutterstock/presto
Package presto
Short Description PHP REST Orchestration for interacting with RESTful services
License
Homepage https://github.com/shutterstock/presto
Informations about the package presto
presto
PHP REST Orchestration
A REST client to access any services that support RESTful access or any HTTP access method. Supports all HTTP methods including: GET, POST, DELETE, PUT, OPTIONS, HEAD, AUTH, and custom. Simultaneous requests are supported through the use of a queue activation setting. Use of the queue will allow multiple requests to be processed in parallel, which can significantly speed up calls to multiple services or API end points.
Example
Features
- Built-in support for all common REST call types
- Support for adding AUTH headers
- Supports queueing and parallel requests
- Support for passing a callback function for processing response
- Logging and profiling built-in
- Customizable timeouts and retries on a per request basis
- Support for setting user agent and referer
More Details
Presto relies on curl to make all requests. Many customization options are available including custom header additions, referrer, and user agent. Profiling is built-in and all the curl meta data and timing information are logged to assist with troubleshooting and optimization. Failed requests are logged as errors with optional exception throwing. A slow request configuration option allows logging of slow requests to the error log. Failed requests can automatically be retried a configureable number of times after a specified delay.
All request results are stored in a standardized Response object that includes meta data, header and request response data blocks. A meta data is_success
entry is always present to indicate if the network request was successful or not. In the event of failure, there will be error information in the meta section.
Testing and Coverage
Presto has both unit and integration tests. To view coverage...