Download the PHP package brokeyourbike/php-http-client without Composer
On this page you can find all versions of the php package brokeyourbike/php-http-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brokeyourbike/php-http-client
More information about brokeyourbike/php-http-client
Files in brokeyourbike/php-http-client
Package php-http-client
Short Description HTTP REST client, simplified for PHP
License MIT
Homepage http://github.com/sendgrid/php-http-client
Informations about the package php-http-client
Quickly and easily access any RESTful or RESTful-like API.
Announcements
All updates to this library is documented in our CHANGELOG.
Table of Contents
- Installation
- Quick Start
- Usage
- Roadmap
- How to Contribute
- License
Installation
Prerequisites
- PHP version 5.6 or higher
Install with Composer
Add php-http-client to your composer.json
file. If you are not using Composer, you should be. It's an excellent way to manage dependencies in your PHP application.
Then at the top of your PHP script require the autoloader:
Then from the command line:
Quick Start
Here is a quick example:
GET /your/api/{param}/call
POST /your/api/{param}/call
with headers, query parameters and a request body with versioning.
If there is an issues with the request, such as misconfigured CURL SSL options, an InvalidRequest
will be thrown
with message from CURL on why the request failed. Use the message as a hit to troubleshooting steps of your environment.
Usage
- Usage Examples
Roadmap
If you are interested in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.
How to Contribute
We encourage contribution to our libraries, please see our CONTRIBUTING guide for details.
Quick links:
- Feature Request
- Bug Reports
- Sign the CLA to Create a Pull Request
- Improvements to the Codebase
- Review Pull Requests
Thanks
We were inspired by the work done on birdy and universalclient.
License
The MIT License (MIT)