zenstruck/callback
Callable wrapper to validate and inject arguments.
v1.5.0
11M downloads/mo
#1754 most downloaded on Packagist
zenstruck/callback
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Ships on a steady schedule
a new release about every 5 months
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
8 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Jan 2021 to Aug 2022Releases
latest 8-
v1.5.031 Aug 2022Release notes
Open source →eed9a53 [minor] remove scrutinizer badge by @kbond
6bd1c49 [minor] remove scrutinizer (#8) by @kbond
68747ed [feature] addCallback::function()(#8) by @kbond
d8b7878 [feature] support intersection type support (#8) by @kbond
319fb96 [minor] improve output ofCallback::__toString()(#8) by @kbond
68e8468 [minor] small perf optimizations (#8) by @kbondRelease notes
Open source →August 31st, 2022 - v1.4.2...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
-
v1.4.226 Mar 2022Release notes
Open source →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 @kbondRelease notes
Open source →March 26th, 2022 - v1.4.1...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
-
v1.4.118 Oct 2021Release notes
Open source →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 @kbondRelease notes
Open source →October 18th, 2021 - v1.4.0...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
-
v1.4.020 Jul 2021Release notes
Open source →- 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)
Release notes
Open source →July 20th, 2021 - v1.3.0...v1.4.0
- 3eae5eb [minor] ensure works with
declare(strict_types=1)(#3) by @kbond - fef4acf [bug] allow default parameter values (#3) by @kbond
- c9f7823 [minor] add Argument::EXACT (#3) by @kbond
- e238a8c [minor] make TypedParameter options configurable (#3) by @kbond
- 40b56af [minor] add non-parameter invoke tests (#3) by @kbond
- 4b84bef [feature] add "strict" supports/allowed modes (#3) by @kbond
- 1d0031f [feature] add Argument::allows() (#3) by @kbond
- 9fd65e3 [feature] improve Argument::supports() (#3) by @kbond
- 3eae5eb [minor] ensure works with
-
v1.3.016 Jul 2021Release notes
Open source →July 16th, 2021 - v1.2.0...v1.3.0
- d5d19c1 [feature] access callback arguments, support PHP 8 union types (#2) by @kbond
- 10ae748 [minor] update php-cs-fixer to v3 by @kbond
- 9a20734 [minor] disable codecov pr annotations by @kbond
- 01f812f [minor] lock php-cs-fixer version in ci (bug in latest release) by @kbond
-
v1.2.011 Jan 2021Release notes
Open source →January 11th, 2021 - v1.1.0...v1.2.0
- b759cfc [feature] add callback as string to exceptions by @kbond
- 8f6d7ab [feature] make callback stringable by @kbond
-
v1.1.009 Jan 2021Release notes
Open source →January 9th, 2021 - v1.0.0...v1.1.0
- 82cd9ac [bug] fix optional parameter issue by @kbond
- 6934887 [feature] allow invoke parameters to be optional by @kbond
- eed6f12 [bug] fix deprecation by @kbond
- 0d084b2 [minor] add Parameter::factory() helper method by @kbond
- f6a7190 [BC BREAK] major refactor by @kbond
-
v1.0.008 Jan 2021