PackageTrack
Sign in Get early access

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 2022
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 8
  1. v1.5.0 31 Aug 2022
    Release notes

    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

    Open source →
    Release notes

    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
    Open source →
  2. v1.4.2 26 Mar 2022
    Release notes

    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

    Open source →
    Release notes

    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
    Open source →
  3. v1.4.1 18 Oct 2021
    Release notes

    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

    Open source →
    Release notes

    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
    Open source →
  4. v1.4.0 20 Jul 2021
    Release notes
    • 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)
    Open source →
    Release notes

    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
    Open source →
  5. v1.3.0 16 Jul 2021
    Release notes
    • 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)
    Open source →
    Release notes

    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
    Open source →
  6. v1.2.0 11 Jan 2021
    Release notes
    • b759cfc [feature] add callback as string to exceptions (Kevin Bond)
    • 8f6d7ab [feature] make callback stringable (Kevin Bond)
    Open source →
    Release notes

    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
    Open source →
  7. v1.1.0 09 Jan 2021
    Release notes
    • 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)
    Open source →
    Release notes

    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
    Open source →
  8. v1.0.0 08 Jan 2021
    Release notes

    January 8th, 2021 - Initial Release

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive