Download the PHP package stk2k/grasshopper without Composer
On this page you can find all versions of the php package stk2k/grasshopper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stk2k/grasshopper
More information about stk2k/grasshopper
Files in stk2k/grasshopper
Download stk2k/grasshopper
More information about stk2k/grasshopper
Files in stk2k/grasshopper
Vendor stk2k
Package grasshopper
Short Description Thin wrapper class library of cURL
License MIT
Homepage https://github.com/stk2k/grasshopper
Package grasshopper
Short Description Thin wrapper class library of cURL
License MIT
Homepage https://github.com/stk2k/grasshopper
Keywords curl
Please rate this library. Is it a good library?
Informations about the package grasshopper
Grasshopper, PHP HTTP Multi Request Client
Description
Grasshopper is a yet another cURL PHP library wchich makes you easy to send HTTP request. This library can process multiple requests at once.
Feature
- supports process multiple requests in one call
- easy to use: simple interface
- variety of error handling: both supported procedural or callback
Demo
Usage
- create grashopper object.
- add HttpGet/HttpPostRequest to grasshopper object.
- execute Grasshopper#waitforAll() method.
- get response from returned array.the key is requested URL.
- check response object whether SuccessEvent or ErrorEvent.SuccessEvent means request was succeeded, ErrorEvent means failure.
- you can get response object from SuccessEvent. it provides status code and response body.
- you can get error information from ErrorEvent. it provides error code and message.
Requirement
PHP 5.5 or later
Installing Grasshopper
The recommended way to install Grasshopper is through Composer.
After installing, you need to require Composer's autoloader:
License
Author
Disclaimer
This software is no warranty.
We are not responsible for any results caused by the use of this software.
Please use the responsibility of the your self.
All versions of grasshopper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package stk2k/grasshopper contains the following files
Loading the files please wait ....