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

Callback Laravel Package

zenstruck/callback

Tiny PHP utility for building and composing callbacks/closures with a fluent API. Helps wrap callables, bind arguments, decorate or chain behavior, and safely invoke functions and methods—handy for middleware-style pipelines, event hooks, and reusable functional helpers.

View on GitHub
Deep Wiki
Context7
v1.5.0

eed9a53 [minor] remove scrutinizer badge by @kbond 6bd1c49 [minor] remove scrutinizer (#8) by @kbond 68747ed [feature] add Callback::function() (#8) by @kbond d8b7878 [feature] support intersection type support (#8) by @kbond 319fb96 [minor] improve output of Callback::__toString() (#8) by @kbond 68e8468 [minor] small perf optimizations (#8) by @kbond

Full Change List

v1.4.2

3eb5356 [bug] support arguments with "self" typehint (#6) by @kbond a3ff9ac [bug] fix Argument::supports() for Stringable object (#6) by @kbond dfb961b [minor] use supported php-cs-fixer version (#5) by @kbond b9fdbc2 [ci] add php 8.1 to test matrix by @kbond

Full Change List

v1.4.1

8961f8d [minor] add $options argument to Parameter::typed() by @kbond 29d8277 [bug] fix using UnionParameter on parameters with default values by @kbond a4fb33d [ci] use reusable actions (#4) by @kbond

Full Change List

v1.4.0
  • 3eae5eb [minor] ensure works with declare(strict_types=1) (Kevin Bond)
  • fef4acf [bug] allow default parameter values (Kevin Bond)
  • c9f7823 [minor] add Argument::EXACT (Kevin Bond)
  • e238a8c [minor] make TypedParameter options configurable (Kevin Bond)
  • 40b56af [minor] add non-parameter invoke tests (Kevin Bond)
  • 4b84bef [feature] add "strict" supports/allowed modes (Kevin Bond)
  • 1d0031f [feature] add Argument::allows() (Kevin Bond)
  • 9fd65e3 [feature] improve Argument::supports() (Kevin Bond)
v1.3.0
  • d5d19c1 [feature] access callback arguments, support PHP 8 union types (#2) (Kevin Bond)
  • 10ae748 [minor] update php-cs-fixer to v3 (Kevin Bond)
  • 9a20734 [minor] disable codecov pr annotations (Kevin Bond)
  • 01f812f [minor] lock php-cs-fixer version in ci (bug in latest release) (Kevin Bond)
v1.2.0
  • b759cfc [feature] add callback as string to exceptions (Kevin Bond)
  • 8f6d7ab [feature] make callback stringable (Kevin Bond)
v1.1.0
  • 82cd9ac [bug] fix optional parameter issue (Kevin Bond)
  • 6934887 [feature] allow invoke parameters to be optional (Kevin Bond)
  • eed6f12 [bug] fix deprecation (Kevin Bond)
  • 0d084b2 [minor] add Parameter::factory() helper method (Kevin Bond)
  • f6a7190 [BC BREAK] major refactor (Kevin Bond)
v1.0.0

Initial release.

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
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
twbs/bootstrap4