Download the PHP package pulkitjalan/requester without Composer
On this page you can find all versions of the php package pulkitjalan/requester. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pulkitjalan/requester
More information about pulkitjalan/requester
Files in pulkitjalan/requester
Package requester
Short Description Requester class to wrap guzzle and retry subscriber
License MIT
Homepage https://github.com/pulkitjalan/requester
Informations about the package requester
Requester
Simple Requester class to wrap guzzle and the retry subscriber
This package requires PHP >=5.4
Installation
Install via composer - edit your composer.json
to require the package.
Then run composer update
in your terminal to pull it in.
Laravel 5
There is a Laravel 5 service provider and facade available.
Add the following to the providers
array in your config/app.php
Next add the following to the aliases
array in your config/app.php
Next run php artisan vendor:publish --provider="pulkitjalan\requester\RequesterServiceProvider" --tag="config"
to publish the config file.
Looking for a Laravel 4 compatible version?
Checkout the 1.0 branch
Usage
The requester class has a dependency of guzzle
and takes in an instance of guzzle
as the first param.
This package also uses a few guzzle subscribers. https://github.com/guzzle/retry-subscriber
for retry functionality and https://github.com/guzzle/log-subscriber
for logging.
Available request methods: get
, head
, delete
, put
, patch
, post
, options
Altering the default retry behaviour. See retry-subscriber for more info.
Disabling ssl check
Use http instead of https
Create a Post request
Guzzle 5 uses RingPHP and has the added functionality of performing request asynchronously.
Performing asynchronous requests
Logging guzzle requests to file. See log-subscriber for more info.
All versions of requester with dependencies
guzzlehttp/guzzle Version ~5
guzzlehttp/retry-subscriber Version ~2
guzzlehttp/log-subscriber Version ~1
illuminate/support Version ~4