Skip to content

Upgrading guzzlehttp/guzzle 1 to 2

Breakingv1.0.4 → v2.8.8Breaking14Deprecated2New51Changed26Fixed29Other49

BreakingUpgrade verdict

14 breaking changes.

  • Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin.
  • Removed SSL information from the default User-Agent header.
  • DELETE requests can now send an entity body.
  • Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything.
Top 5 of 16 that need code or config changes

Adds symfony/event-dispatcher 2.1.*.

Breaking14
Bug: Custom delay time calculations are no longer ignored in the ExponentialBackoffPlugin.
Removed SSL information from the default User-Agent header.
DELETE requests can now send an entity body.
Removed the default 2mb size cutoff from the Md5ValidatorPlugin so that it now defaults to validating everything.
Bug: Query string values set to 0 are no longer dropped from the query string.
Bug: A Collection object is no longer created each time a call is made to Guzzle\Service\Command\AbstractCommand::getRequestHeaders().
Guzzle\Service\Command\AbstractCommand::getRequestHeaders()
Cookies are no longer URL decoded by default.
Bug: URI template variables set to null are no longer expanded.
BC: Removed magic setX methods from commands.
Verbose cURL options are no longer enabled by default.
[BC] Guzzle\Common\FromConfigInterface no longer requires any config options.
[BC] No longer supporting "{{ }}" for injecting into command or UriTemplates.
BC: Inflection classes moved to Guzzle\Inflection.
[BC] Using a custom validation system that allows a flyweight implementation for much faster validation.
Deprecated2
[BC] Guzzle\Guzzle is now deprecated.
[BC] Simplifying Guzzle\Common\Collection.