Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Httplug Laravel Package

php-http/httplug

HTTPlug provides HTTP client abstraction interfaces for PHP, built on PSR-7 messages. Defines async HttpAsyncClient plus a sync HttpClient similar to PSR-18, enabling libraries to stay client-agnostic while supporting multiple HTTP implementations.

View on GitHub
Deep Wiki
Context7
2.4.1
  • Updated code to not raise warnings for nullable parameters in PHP 8.4.
2.4.0
  • Allow psr/http-message v2 in addition to v1
  • Deprecate Http\Client\HttpClient, use PSR-18 instead
2.3.0
  • Enabled the $onRejected callback of HttpRejectedPromise to return a promise for implementing a retry mechanism #168
2.2.0

Changed

  • Support PHP 7.1-8.0
2.1.0

Changed

  • Http\Client\Exception\NetworkException no longer extends Http\Client\Exception\RequestException, in accordance with PSR-18
v2.0.0

After two years of work the FIG finally accepted our proposal for HTTP Client standard as PSR-18. This is a huge step in the life of HTTPlug.

Many thanks to @Nyholm who spearheaded the effort from the very first moment and worked extremely hard to pull this off. Thanks to the working group and everyone else, who made this possible.

v1.1.0

During the development of plugins we faced a problem with exceptions thrown in plugins.

Any exceptions not implementing Http\Client\Exception ended up in an invalid argument error because of these lines:

https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38

This type leak allowed to inject an exception to be passed to the onRejected callback of a Promise.

In the current release we introduced HTTP specific promises which does not catch all exceptions, but HTTP ones. Every other exception will be thrown immediately.

v1.0.0
v1.0.0-beta

This release brings a cleaner exception concept which is documented directly in the interfaces.

There is also an initial support for discovering HTTP Clients using Puli.

v1.0.0-alpha2

Thanks to @joelwurtz we now have an asynchronous client and a promise in the contract.

Our plugin architecture will use this functionality.

v1.0.0-alpha

Yay, finally we got here.

After 7 months of work, we are proud to present our HTTP Client contract to the world.

Although this started as a project providing adapters to already existing HTTP Clients, the goal changed to a more general approach.

v0.1.0

This is the first preview release of the Http Adapter contract

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport