PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 19
  1. 2.0.17 25 May 2026
    Release notes

    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.json and apply fixed phpdoc-property annotations. by @terabytesoftw in #257
    • Added additional keys to Message::getHeaders() to make full HTTP status line details available to Client::getHeaders(). by @zmoddynamics in #205
    • Fix @var annotation for Response::$statusCode and @return annotation for Response::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 in composer.json, and update phpstan baseline. by @terabytesoftw in #261

    New Contributors

    Full Changelog: 2.0.16...2.0.17

    Open source →
    Release notes
    • Bug #250: Fixed TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, bool given in case PHP error reporting is turned off (shaperman)
    • Bug #251: Fixed The predefined locally scoped $http_response_header variable is deprecated since PHP 8.5 (Arkeins)
    • Bug #253: Fixed curl_close() and curl_multi_close() deprecation since PHP 8.5 (samdark)
    • Bug #258: Fix @var annotation for Response::$statusCode and @return annotation for Response::getStatusCode() (@mspirkov)
    • Enh #204: Added additional keys to Message::getHeaders() to make full HTTP status line details available to Client::getHeaders() (ClintZeringue)
    • Enh #255: Applying Yii2 coding standards (@s1lver)
    • Enh #255: Raise min version to PHP 7.4 (@s1lver)
    Open source →
  2. 2.0.16 13 Feb 2025
    Release notes
    • Bug #240: Fixed \yii\httpclient\Response::getIsOk() to include entire 2xx response code range (rhertogh)
    • Enh #239: Support for PHP 8.1 (rhertogh)
    Open source →
  3. 2.0.15 22 May 2023
    Release notes
    • 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)
    Open source →
  4. 2.0.14 09 Aug 2021
    Release notes
    • Enh #215: Added possibility to skip charset in header on UrlEncodedFormatter::format() (egorrishe)
    • Enh #216: Use random_int() when generating boundary (samdark)
    Open source →
  5. 2.0.13 23 Dec 2020
    Release notes
    • Bug #209: Fixed error code, thrown by Exception in CurlTransport (kwazaro)
    Open source →
  6. 2.0.12 08 Oct 2019
    Release notes
    • Enh #192: Implement Request::responseTime() which returns the seconds (microtime precession) elapsed from request to response (HenryVolkmer)
    Open source →
  7. 2.0.11 14 May 2019
    Release notes
    • Bug #189: Fixed Content-Length header when using CURLOPT_INFILE option (alexkart)
    Open source →
  8. 2.0.10 30 Apr 2019
    Release notes
    • Enh #167: Added support of multiple parameters with the same name for multipart requests (alexkart)
    Open source →
  9. 2.0.9 23 Apr 2019
    Release notes
    • Bug #149: Fixed type error in StreamTransport when $http_response_header = null (alexkart)
    • Bug #171: Added "Content-Length: 0" header when sending request with empty body (alexkart)
    • Enh #66: Added CURLOPT_FILE option support to CurlTransport (alexkart)
    • Enh #85: Added CurlFormatter in order to support CURLFile for uploading files (alexkart)
    Open source →
  10. 2.0.8 16 Apr 2019
    Release notes
    • Bug #168: Response::detectFormatByContent falsely 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 JsonParser to parse JSON as objects instead of arrays (CeBe)
    • Enh #174: Add MockTransport for test environments (Slamdunk)
    Open source →
  11. 2.0.7 23 Sep 2018
    Release notes
    • Bug #165: Response::detectFormatByContent now detects JSON Array (germanow)
    • Enh #156: Added Request::setFullUrl() return reference (vuongxuongminh)
    Open source →
  12. 2.0.6 13 Feb 2018
    Release notes
    • 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 combining Client::$baseUrl and Request::$url (zhangdi)
    Open source →
  13. 2.0.5 03 Nov 2017
    Release notes
    • Bug #128: Fixed Response with redirection takes wrong 'Content-Type' header value for content parsing (klimov-paul)
    • Bug: Usage of deprecated yii\base\Object changed to yii\base\BaseObject allowing 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)
    Open source →
  14. 2.0.4 23 Jun 2017
    Release notes
    • Bug #94: Fixed XmlParser does 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::$content is set to empty string by UrlEncodedFormatter and JsonFormatter from empty data (klimov-paul)
    • Bug #102: Fixed XmlParser does not converts \SimpleXMLElement into array for the grouped tags (kids-return)
    Open source →
  15. 2.0.3 15 Feb 2017
    Release notes
    • Bug #74: Fixed unable to reuse Request instance for sending several requests with different data (klimov-paul)
    • Bug #76: Fixed HttpClientPanel triggers E_WARNING on 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 UrlEncodedFormatter duplicates GET parameters during multiple request preparations (klimov-paul)
    Open source →
  16. 2.0.2 31 Oct 2016
    Release notes
    • Bug #61: Response headers extraction at StreamTransport changed to use $http_response_header to be more reliable (klimov-paul)
    • Bug #70: Fixed Request::toString() triggers E_NOTICE for not prepared request (klimov-paul)
    • Bug #73: Fixed Response::detectFormatByContent() unable to detect URL-encoded format, if source content contains | symbol (klimov-paul)
    Open source →
  17. 2.0.1 04 Aug 2016
    Release notes
    • Bug #44: Fixed exception name collision at Response and Transport (cebe)
    • Bug #45: Fixed XmlFormatter unable to handle array with numeric keys (klimov-paul)
    • Bug #53: Fixed XmlParser unable to parse value wrapped with 'CDATA' (DrDeath72)
    • Bug #55: Fixed invalid display of Debug Toolbar summary block (rahimov)
    • Enh #43: Events EVENT_BEFORE_SEND and EVENT_AFTER_SEND added to Request and Client (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::$options allowing specification of the HTTP protocol version (klimov-paul)
    • Enh #58: Added UrlEncodedFormatter::$charset allowing specification of content charset (klimov-paul)
    • Enh: Added XmlFormatter::useTraversableAsArray allowing processing \Traversable as array (klimov-paul)
    Open source →
  18. 2.0.0 01 Jul 2016
    Release notes
    • Initial release.
    Open source →
  19. 2.0.0.1 01 Jul 2016
    Release notes
    • Enh: Fixed PHPdoc annotations (cebe)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive