Download the PHP package ehough/shortstop without Composer
On this page you can find all versions of the php package ehough/shortstop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ehough/shortstop
More information about ehough/shortstop
Files in ehough/shortstop
Package shortstop
Short Description Fast and flexible HTTP client for PHP 5.2+
License MPL-2.0
Homepage https://github.com/ehough/shortstop
Informations about the package shortstop
shortstop
This library is no longer maintained. Fast and flexible HTTP client for PHP 5.2+.
Motivation
Today we can choose from a number of excellent HTTP client libraries for PHP. However, they all assume a particular configuration of the underlying PHP installation. e.g. Guzzle requires cURL. This presents a problem if you want to ship code that can be run on an arbitrary PHP server.
shortstop
mitigates this problem by dynamically selecting the best underlying HTTP mechanism for the server's environment. As a result, shortstop
works on virtually any PHP 5.2+ installation.
Features
- Compatible with PHP 5.2+
- Supports cURL, PHP's HTTP extension, fsockopen(), fopen(), and streams
- HTTP 1.0 only (for now!)
- Strong support for HTTP content compression. Exact mechanism (deflate, gzip, etc) determined by server environment
- Built-in chunked-transfer decoding
- Highly configurable and extensible via an event dispatcher compatible with Symfony's event dispatcher
- Heavily tested with excellent code coverage
Usage
As you can see below, the trade-off for all the flexibility of stash
is that assembling the components can be quite verbose. Using
an inversion-of-control container can help, as the actual client can be reused as a singleton. If, however, you'd like to use stash
on its own then you can follow the code below.
All versions of shortstop with dependencies
ehough/chaingang Version ~1.0.0
ehough/curly Version ~1.0.0
ehough/epilog Version ~1.5
ehough/tickertape Version ~2.3