Download the PHP package patienceman/httprequestor without Composer
On this page you can find all versions of the php package patienceman/httprequestor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package httprequestor
HttpRequestor from Patienceman
HTTP Requestor: Package for a client request that supports you to make an external service request easily and with fast usage.
Installation
Installing the package doesn't require much requirement except to paste the following command in the laravel terminal, and you're good to go.
Usage
To use HTTP Requestor u need to call class, But before everything you need to publish the config file for "HTTP requestor", Just run!
Let's take the example with it and see the simplicity
So!, now you can make requests with all standard methods. There are two ways this package is useful, by requesting an access token to the server or by sending a normal request
let's take the example of requesting access token
So now we are able to request an access tokens.
Let also take the example of a normally api request with standard HTTP methods
Fantastic right! and super cool!
So now on Moses are able to make a super request to our commandment server!,
This package also contains the HttpResponse Helper class, which support your JSON response to remove all null value, on the go! To use it, u need just one class
let's take an example with it and see how it works!
And whenever one of the passed parameters is null, the HttpResponse deletes it from the parameters, soon or later we're going to another way of making it optional.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.