Weave 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

Promises Laravel Package

guzzlehttp/promises

Guzzle Promises is a small PHP promise library that powers Guzzle's asynchronous requests. It provides promise chaining, synchronous waiting, cancellation, and helpers for coordinating groups of promises. Install it directly when you need promise composition without the full HTTP client.

View on GitHub
Deep Wiki
Context7
3.1.0

Added

  • Added State promise state checks as a replacement for Is

Deprecated

  • Deprecated Is because PHP 8.6 deprecates is as a class name
3.0.2

Added

  • Added support for PHP 8.6
2.5.3

Added

  • Added support for PHP 8.6
3.0.1

Changed

  • Changed the default TReason of FulfilledPromise and Create::promiseFor() to never
  • Changed the default TValue of RejectedPromise and Create::rejectionFor() to never

Fixed

  • Fixed EachPromise abandoning its aggregate when the pending window drains unsettled
  • Fixed EachPromise admitting new work after its aggregate has settled
2.5.2

Fixed

  • Fixed EachPromise abandoning its aggregate when the pending window drains unsettled
  • Fixed EachPromise admitting new work after its aggregate has settled
3.0.0

Added

  • Added concurrency config support to Utils::all() and Each::of()
  • Added generic PHPDoc annotations to promise APIs and collection callbacks
  • Added recursive and concurrency config support to Utils::settle()
  • Allowed promises to be resolved without passing a value

Changed

  • Changed Utils::inspect() to return actual rejection reasons
  • Changed Utils::inspect() to prefer the settled state over late wait function exceptions
  • Changed late rejection callbacks to follow rejected promises
  • Reject native PHP serialization of in-flight runtime objects
  • Made static helper classes non-instantiable
  • Require iterable inputs for promise collection helpers and EachPromise
  • Iterate IteratorAggregate inputs to collection helpers instead of treating them as a single value
  • Improved recursive Utils::all() handling of dynamically-added settled values and raw values

Removed

  • Dropped support for PHP 7.2 and 7.3
2.5.1

Fixed

  • Fixed recursive Utils::all() rejecting generator inputs
2.5.0

Deprecated

  • Deprecated passing non-iterable inputs to promise collection helpers and EachPromise
2.4.1

Fixed

  • Fixed cancelling settled coroutines when no current promise remains
2.4.0

Changed

  • Empty EachPromise instances now resolve when the task queue runs without wait()
2.3.1

Fixed

  • Fixed Utils::inspect() returning the internal reason array instead of the AggregateException
2.3.0

Added

  • PHP 8.5 support
2.2.0

Fixed

  • Revert "Allow an empty EachPromise to be resolved by running the queue"
2.1.0

Added

  • Allow an empty EachPromise to be resolved by running the queue
2.0.4

Fixed

  • Once settled, don't allow further rejection of additional promises
2.0.3

Changed

  • PHP 8.4 support
2.0.2

Changed

  • Replaced call_user_func* with native calls
2.0.1

See change log for changes.

2.0.0

See change log for changes.

1.5.3

See change log for changes.

1.5.2

See change log for changes.

1.5.1

See change log for changes.

1.5.0

See change log for changes.

1.4.1

See change log for changes.

1.4.0

See change log for changes.

v1.3.1
  • Fixed wait() foreign promise compatibility
1.3.0
  • Adds support for custom task queues.
  • Fixed coroutine promise memory leak.
1.1.0
  • Update EachPromise to prevent recurring on a iterator when advancing, as this could trigger fatal generator errors.
  • Update Promise to allow recursive waiting without unwrapping exceptions.
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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource