NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2045 most downloaded on Packagist
Unirest PHP
Latest stable
v3.0.4
Last release 10 years ago
no release in 18 months
Ships fairly regularly
a new release about every 5 weeks
Most releases are documented
notes for 17 of 23 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
23 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Minor enhancement to namespacing
Minor enhancement to namespacing
Don't use CURLOPT_CUSTOMREQUEST for POSTs #105 by @voodoodrul
Custom request headers should replace default headers, if provided.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
JSON Extension now an optional (suggested) dependency.
Unirest\Request\Body::Form for constructing application/x-www-form-urlencoded request bodiesUnirest\Request\Body::Json for constructing application/json request bodiesUnirest\Request\Body::Multipart($dat, $files) for constructing multipart/form-data request bodies and file uploadsUnirest\Request\Body::File for single file upload parameter constructionUnirest\FilePlease Review the README for the updated API.
Nothing published for this version
Fixed: setting of default headers array #89
Fixed: setting of default headers array #89
improved solution to override cURL options
improved solution to override cURL options
allow to override default curlopts
allow to override default curlopts
update phpdoc return values.
update phpdoc return values.
disable SSL host verification with helper method: Unirest\Request::verifyHost(false)
disable SSL host verification with helper method: Unirest\Request::verifyHost(false)
ability to set custom curl options:
ability to set custom curl options:
Unirest\Request::curlOpt()Unirest\Request::curlOpts()Unirest\Request::clearCurlOpts()fix: cookieFile undefined variable
Nothing published for this version
Mockbin integration for testing and documentation.
Allow direct access to internal cURL handle with Unirest\Request::getCurlHandle()
New Utility Methods
Unirest\Request::getCurlHandle()Unirest\Request::getInfo() for debugging failed requestsPHP 5.4 lacks support for CURLOPT_USERNAME and CURLOPT_PASSWORD
PHP 5.4 lacks support for CURLOPT_USERNAME and CURLOPT_PASSWORD
Advanced Authentication Methods
Advanced Authentication Methods
Unirest\Request::auth($username, $password = '', $method = CURLAUTH_BASIC);
Supports Basic, Digest, Negotiate, NTLM Authentication natively, see README for more details.
Proxy Support
Unirest\Request::proxy($address, $port = 1080, $type = CURLPROXY_HTTP, $tunnel = false);
proxy port defaults to 1080 as per cURL defaults
check the cURL docs for more info on tunneling.
proxy type to be one of CURLPROXY_HTTP, CURLPROXY_HTTP_1_0, CURLPROXY_SOCKS4, CURLPROXY_SOCKS5, CURLPROXY_SOCKS4A, and CURLPROXY_SOCKS5_HOSTNAME.
check the cURL docs for more info.
full usage example:
// quick setup with default port: 1080
Unirest\Request::proxy('10.10.10.1');
// custom port and proxy type
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP);
// enable tunneling
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP, true);
Proxy Authentication
Unirest\Request::proxyAuth($username, $password = '', $method = CURLAUTH_BASIC);
Supports Basic, Digest, Negotiate, NTLM Authentication natively, see README for more details.
send requests using any standard or custom HTTP Method using Unirest\Request::send
Unirest\Request::sendUnirest\Request::jsonOpts() method.Unirest\Request::defaultHeaders()added Code Coverage through Code Climate
Cleanups & Updates
Unirest\File::add signature to follow after curl_file_create with fallbackBreaking Changes
src and tests as per phpunit standard tree structureUnirest\Request, Unirest\Response, Unirest\Method, Unirest\FileNothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.