yiisoft/yii2-httpclient
HTTP client extension for the Yii framework
2.0.17
12M downloads/mo
#1676 most downloaded on Packagist
yiisoft/yii2-httpclient
What this package is like to depend on
Last release 3 months ago
25 May 2026
Release timing varies
gaps range from 2 weeks to 1.8 years
Nearly every release is documented
notes for 19 of 19 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
19 releases · first in 2016
1 release in the last 12 months
see the full history below
Release timeline
19 releases · Jul 2016 to May 2026
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 19-
2.0.1725 May 2026Release notes
Open source →What's Changed
- fixStreamGetContentsArgumentError by @shaperman in #250
- Fix $http_response_header deprecated local variable #251 by @Arkeins in #252
- Fix curl_close() deprecation in PHP 8.5 by @Copilot in #254
- Applying Yii2 coding standards by @s1lver in #255
- Fix deprecated tests in PHP
8.5. by @terabytesoftw in #256 - Enhance documentation, add scripts for
composer.jsonand apply fixedphpdoc-propertyannotations. by @terabytesoftw in #257 - Added additional keys to
Message::getHeaders()to make full HTTP status line details available toClient::getHeaders(). by @zmoddynamics in #205 - Fix
@varannotation forResponse::$statusCodeand@returnannotation forResponse::getStatusCode()by @mspirkov in #258 - Refactor linter configuration and update Composer scripts for improved code quality checks. by @terabytesoftw in #260
- Update
CHANGELOG.md, bump Yii version incomposer.json, and update phpstan baseline. by @terabytesoftw in #261
New Contributors
- @shaperman made their first contribution in #250
- @Arkeins made their first contribution in #252
- @Copilot made their first contribution in #254
- @s1lver made their first contribution in #255
- @zmoddynamics made their first contribution in #205
- @mspirkov made their first contribution in #258
Full Changelog: 2.0.16...2.0.17
Release notes
Open source →- Bug #250: Fixed
TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool givenin case PHP error reporting is turned off (shaperman) - Bug #251: Fixed
The predefined locally scoped $http_response_header variable is deprecatedsince PHP 8.5 (Arkeins) - Bug #253: Fixed
curl_close()andcurl_multi_close()deprecation since PHP 8.5 (samdark) - Bug #258: Fix
@varannotation forResponse::$statusCodeand@returnannotation forResponse::getStatusCode()(@mspirkov) - Enh #204: Added additional keys to
Message::getHeaders()to make full HTTP status line details available toClient::getHeaders()(ClintZeringue) - Enh #255: Applying Yii2 coding standards (@s1lver)
- Enh #255: Raise min version to PHP 7.4 (@s1lver)
-
2.0.1613 Feb 2025Release notes
Open source →- Bug #240: Fixed
\yii\httpclient\Response::getIsOk()to include entire 2xx response code range (rhertogh) - Enh #239: Support for PHP 8.1 (rhertogh)
- Bug #240: Fixed
-
2.0.1522 May 2023Release notes
Open source →- Bug #224: Parse content when it is not an empty string (pawmaster)
- Bug #226: Fix error in debug panel due to PHP 8.1 deprecation of implicit float to int conversion (lacek)
-
2.0.1409 Aug 2021Release notes
Open source →- Enh #215: Added possibility to skip charset in header on
UrlEncodedFormatter::format()(egorrishe) - Enh #216: Use
random_int()when generating boundary (samdark)
- Enh #215: Added possibility to skip charset in header on
-
2.0.1323 Dec 2020Release notes
Open source →- Bug #209: Fixed error code, thrown by Exception in
CurlTransport(kwazaro)
- Bug #209: Fixed error code, thrown by Exception in
-
2.0.1208 Oct 2019Release notes
Open source →- Enh #192: Implement
Request::responseTime()which returns the seconds (microtime precession) elapsed from request to response (HenryVolkmer)
- Enh #192: Implement
-
2.0.1114 May 2019Release notes
Open source →- Bug #189: Fixed Content-Length header when using
CURLOPT_INFILEoption (alexkart)
- Bug #189: Fixed Content-Length header when using
-
2.0.1030 Apr 2019Release notes
Open source →- Enh #167: Added support of multiple parameters with the same name for multipart requests (alexkart)
-
2.0.923 Apr 2019Release notes
Open source →- Bug #149: Fixed type error in
StreamTransportwhen$http_response_header = null(alexkart) - Bug #171: Added "Content-Length: 0" header when sending request with empty body (alexkart)
- Enh #66: Added
CURLOPT_FILEoption support toCurlTransport(alexkart) - Enh #85: Added
CurlFormatterin order to supportCURLFilefor uploading files (alexkart)
- Bug #149: Fixed type error in
-
2.0.816 Apr 2019Release notes
Open source →- Bug #168:
Response::detectFormatByContentfalsely detected HTML as XML (CeBe) - Bug #173: Added extra check to
Message::addData()to prevent error on trying to merge non-array (samdark) - Enh #153: Allow configuring
JsonParserto parse JSON as objects instead of arrays (CeBe) - Enh #174: Add
MockTransportfor test environments (Slamdunk)
- Bug #168:
-
2.0.723 Sep 2018Release notes
Open source →- Bug #165:
Response::detectFormatByContentnow detects JSON Array (germanow) - Enh #156: Added
Request::setFullUrl()return reference (vuongxuongminh)
- Bug #165:
-
2.0.613 Feb 2018Release notes
Open source →- Bug #129: Fixed
Message::getHeaders()unable to parse HTTP status code in case reason phrase contains:character (lan143) - Enh #142:
Request::createFullUrl()now prevents appearance of multiple slashes while combiningClient::$baseUrlandRequest::$url(zhangdi)
- Bug #129: Fixed
-
2.0.503 Nov 2017Release notes
Open source →- Bug #128: Fixed
Responsewith redirection takes wrong 'Content-Type' header value for content parsing (klimov-paul) - Bug: Usage of deprecated
yii\base\Objectchanged toyii\base\BaseObjectallowing compatibility with PHP 7.2 (klimov-paul) - Enh #119: Options for client SSL certificate specification added to
Request::$options(bscheshirwork) - Chg #118: Enforced cookie validation removed from
Request(klimov-paul)
- Bug #128: Fixed
-
2.0.423 Jun 2017Release notes
Open source →- Bug #94: Fixed
XmlParserdoes not respects character encoding from response headers (klimov-paul) - Bug #98: Fixed
Request::composeCookieHeader()no longer performs url-encoding over cookie value (klimov-paul) - Bug #99: Fixed
Request::$contentis set to empty string byUrlEncodedFormatterandJsonFormatterfrom empty data (klimov-paul) - Bug #102: Fixed
XmlParserdoes not converts\SimpleXMLElementinto array for the grouped tags (kids-return)
- Bug #94: Fixed
-
2.0.315 Feb 2017Release notes
Open source →- Bug #74: Fixed unable to reuse
Requestinstance for sending several requests with different data (klimov-paul) - Bug #76: Fixed
HttpClientPaneltriggersE_WARNINGon attempt to view history debug entry, generated without panel being attached (klimov-paul) - Bug #79: Fixed inability to use URL with query parameters as
Client::$baseUrl(klimov-paul) - Bug #81: Fixed invalid Content-Disposition header in multipart request (cebe, PowerGamer1)
- Bug #87: Fixed
Request::addOptions()unable to override already set CURL options (klimov-paul) - Bug #88: Fixed
UrlEncodedFormatterduplicates GET parameters during multiple request preparations (klimov-paul)
- Bug #74: Fixed unable to reuse
-
2.0.231 Oct 2016Release notes
Open source →- Bug #61: Response headers extraction at
StreamTransportchanged to use$http_response_headerto be more reliable (klimov-paul) - Bug #70: Fixed
Request::toString()triggersE_NOTICEfor not prepared request (klimov-paul) - Bug #73: Fixed
Response::detectFormatByContent()unable to detect URL-encoded format, if source content contains|symbol (klimov-paul)
- Bug #61: Response headers extraction at
-
2.0.104 Aug 2016Release notes
Open source →- Bug #44: Fixed exception name collision at
ResponseandTransport(cebe) - Bug #45: Fixed
XmlFormatterunable to handle array with numeric keys (klimov-paul) - Bug #53: Fixed
XmlParserunable to parse value wrapped with 'CDATA' (DrDeath72) - Bug #55: Fixed invalid display of Debug Toolbar summary block (rahimov)
- Enh #43: Events
EVENT_BEFORE_SENDandEVENT_AFTER_SENDadded toRequestandClient(klimov-paul) - Enh #46: Added
Request::getFullUrl()allowing getting the full actual request URL (klimov-paul) - Enh #47: Added
Message::addData()allowing addition of the content data to already existing one (klimov-paul) - Enh #50: Option 'protocolVersion' added to
Request::$optionsallowing specification of the HTTP protocol version (klimov-paul) - Enh #58: Added
UrlEncodedFormatter::$charsetallowing specification of content charset (klimov-paul) - Enh: Added
XmlFormatter::useTraversableAsArrayallowing processing\Traversableas array (klimov-paul)
- Bug #44: Fixed exception name collision at
-
2.0.001 Jul 2016 -
2.0.0.101 Jul 2016