Description
0 and later. It focuses on readability, simplicity and flexibility, aiming to make common HTTP work easier than raw cURL. You can call readable helpers for GET, PUT, POST, DELETE, HEAD, PATCH and OPTIONS, set custom headers, and use basic auth or client-side certificate authentication. Responses are parsed automatically: when a response is JSON, Httpful interprets it as data by default, and you can override that. Request payloads are serialised automatically, and you can save request templates to reuse. The README's example searches the Twitter API for tweets containing a hashtag, adds a header, and gets back an array of objects. Httpful is PSR-0 compliant. json, or clone the source and use the bundled autoloader or a PSR-0 autoloader. A build script can also create a Phar archive.…
Highlights
- Chainable, readable HTTP methods
- Automatic smart response parsing
- Automatic payload serialization
- Basic and client certificate auth
- Reusable request templates
Ratings & Reviews
No ratings yet
Be the first to rate Httpful.
People also visit
Httpful FAQ
What is Httpful?
A chainable HTTP client library for PHP 8.0 and later, designed as a readable alternative to cURL.
How do I install it?
Add nategood/httpful to your composer.json file, or clone the source and use its PSR-0 autoloader.
Which HTTP methods are supported?
GET, PUT, POST, DELETE, HEAD, PATCH and OPTIONS.
Does it parse JSON automatically?
Yes. Responses are interpreted automatically, with JSON treated as data by default, and you can override that behaviour.
Is certificate checking on?
Yes. Since version 1.0.0, certificate validation is the default. It can be skipped only by calling withoutStrictSSL.
What are the best Httpful alternatives?
Popular alternatives to Httpful include Restclient CPP, Crest and Tiny.RestClient. See all Httpful alternatives
