PackageTrack
Sign in Get early access

laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.

v2.0.15 390M downloads/mo #90 most downloaded on composer laravel/serializable-closure

What this package is like to depend on

Last release 1 months ago

21 Jul 2026

Release timing varies

gaps range from 9 days to 6 months

Nearly every release is documented

notes for 34 of 35 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

35 releases · first in 2021

11 releases in the last 12 months

see the full history below

Release timeline

35 releases · Sep 2021 to Jul 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 35
  1. v2.0.15 21 Jul 2026
    Release notes
    • Fix nested SerializableClosure in array property becoming a plain Closure by @lucasmichot in #172
    Open source →
    Release notes
    • Fix nested SerializableClosure in array property becoming a plain Closure by @lucasmichot in https://github.com/laravel/serializable-closure/pull/172
    Open source →
  2. v2.0.14 24 Jun 2026
    Release notes
    • Pin GitHub Actions to commit SHAs and add Dependabot config by @joetannenbaum in #158
    • Bump shivammathur/setup-php from 2.37.0 to 2.37.1 in the github-actions group by @dependabot[bot] in #160
    • GitHub Actions hardening by @nunomaduro in #162
    • Add Dependabot cooldown of 5 days by @nunomaduro in #163
    • Enable Dependabot auto-merge by @nunomaduro in #165
    • [2.x] Restore nested closure in object property on unserialize by @kapersoft in #166
    • Bump actions/checkout from 6.0.2 to 6.0.3 in the github-actions group by @dependabot[bot] in #168
    • Bump shivammathur/setup-php from 2.37.1 to 2.37.2 in the github-actions group by @dependabot[bot] in #169
    • Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group by @dependabot[bot] in #170
    Open source →
    Release notes
    • Pin GitHub Actions to commit SHAs and add Dependabot config by @joetannenbaum in https://github.com/laravel/serializable-closure/pull/158
    • Bump shivammathur/setup-php from 2.37.0 to 2.37.1 in the github-actions group by @dependabot[bot] in https://github.com/laravel/serializable-closure/pull/160
    • GitHub Actions hardening by @nunomaduro in https://github.com/laravel/serializable-closure/pull/162
    • Add Dependabot cooldown of 5 days by @nunomaduro in https://github.com/laravel/serializable-closure/pull/163
    • Enable Dependabot auto-merge by @nunomaduro in https://github.com/laravel/serializable-closure/pull/165
    • [2.x] Restore nested closure in object property on unserialize by @kapersoft in https://github.com/laravel/serializable-closure/pull/166
    • Bump actions/checkout from 6.0.2 to 6.0.3 in the github-actions group by @dependabot[bot] in https://github.com/laravel/serializable-closure/pull/168
    • Bump shivammathur/setup-php from 2.37.1 to 2.37.2 in the github-actions group by @dependabot[bot] in https://github.com/laravel/serializable-closure/pull/169
    • Bump actions/checkout from 6.0.3 to 7.0.0 in the github-actions group by @dependabot[bot] in https://github.com/laravel/serializable-closure/pull/170
    Open source →
  3. v2.0.13 16 Apr 2026
    Release notes
    • feat: support closures in constant expressions (php8.5) by @calebdw in #157
    Open source →
    Release notes
    • feat: support closures in constant expressions (php8.5) by @calebdw in https://github.com/laravel/serializable-closure/pull/157
    Open source →
  4. v2.0.12 14 Apr 2026
    Release notes
    • fix: closure from inside anonymous migration by @calebdw in #156
    Open source →
    Release notes
    • fix: closure from inside anonymous migration by @calebdw in https://github.com/laravel/serializable-closure/pull/156
    Open source →
  5. v2.0.11 07 Apr 2026
    Release notes
    • [2.x] [bug] Fix operator precedence bug in scope detection for class keywords by @JoshSalway in #137
    • [2.x] [cleanup] Remove dead code and fix docblock errors by @JoshSalway in #139
    • [2.x] [regression] Fix v2.0.9 regression: Bus::chain breaks with nested closures by @JoshSalway in #129
    • [2.x] [bug] Fix crash with method-only attributes on serialized closures by @JoshSalway in #128
    • [2.x] [bug] Add true to builtin types list for PHP 8.2+ by @JoshSalway in #141
    • [2.x] [bug] Fix instanceof with parenthesized expressions by @JoshSalway in #140
    • [2.x] [bug] Fix SerializableClosure as class property being unwrapped during deserialization by @JoshSalway in #135
    • Register MultipleClosuresOnSameLineTest in phpunit.xml.dist by @JoshSalway in #143
    • [2.x] [docs] Update README caveats by @JoshSalway in #153
    • [2.x] [bug] Bypass property hooks during serialization traversal on PHP 8.4+ by @JoshSalway in #146
    Open source →
    Release notes
    • [2.x] [bug] Fix operator precedence bug in scope detection for class keywords by @JoshSalway in https://github.com/laravel/serializable-closure/pull/137
    • [2.x] [cleanup] Remove dead code and fix docblock errors by @JoshSalway in https://github.com/laravel/serializable-closure/pull/139
    • [2.x] [regression] Fix v2.0.9 regression: Bus::chain breaks with nested closures by @JoshSalway in https://github.com/laravel/serializable-closure/pull/129
    • [2.x] [bug] Fix crash with method-only attributes on serialized closures by @JoshSalway in https://github.com/laravel/serializable-closure/pull/128
    • [2.x] [bug] Add true to builtin types list for PHP 8.2+ by @JoshSalway in https://github.com/laravel/serializable-closure/pull/141
    • [2.x] [bug] Fix instanceof with parenthesized expressions by @JoshSalway in https://github.com/laravel/serializable-closure/pull/140
    • [2.x] [bug] Fix SerializableClosure as class property being unwrapped during deserialization by @JoshSalway in https://github.com/laravel/serializable-closure/pull/135
    • Register MultipleClosuresOnSameLineTest in phpunit.xml.dist by @JoshSalway in https://github.com/laravel/serializable-closure/pull/143
    • [2.x] [docs] Update README caveats by @JoshSalway in https://github.com/laravel/serializable-closure/pull/153
    • [2.x] [bug] Bypass property hooks during serialization traversal on PHP 8.4+ by @JoshSalway in https://github.com/laravel/serializable-closure/pull/146
    Open source →
  6. v2.0.10 20 Feb 2026
    Release notes
    Open source →
    Release notes
    • Fix trying to access array offset on null by @bytestream in https://github.com/laravel/serializable-closure/pull/125
    Open source →
  7. v2.0.9 03 Feb 2026
    Release notes
    Open source →
    Release notes
    • Fix virtual property serialization by @jivanf in https://github.com/laravel/serializable-closure/pull/121
    • fix: cannot assign Native to property of type Closure by @calebdw in https://github.com/laravel/serializable-closure/pull/122
    • Supports Laravel 13 by @crynobone in https://github.com/laravel/serializable-closure/pull/124
    Open source →
  8. v2.0.8 08 Jan 2026
    Release notes
    Open source →
    Release notes
    • Fix serialization of multiple closures on the same line by @michaelruelas in https://github.com/laravel/serializable-closure/pull/120
    Open source →
  9. v2.0.7 21 Nov 2025
    Release notes
    Open source →
    Release notes
    • Allow Pest v4.0 by @jnoordsij in https://github.com/laravel/serializable-closure/pull/117
    • Remove setAccessible calls for properties by @jnoordsij in https://github.com/laravel/serializable-closure/pull/115
    • Test on PHP 8.5 by @jnoordsij in https://github.com/laravel/serializable-closure/pull/116
    • Fix GitHub Actions workflow and tweak Composer configuration. by @crynobone in https://github.com/laravel/serializable-closure/pull/118
    Open source →
  10. v2.0.6 09 Oct 2025
    Release notes
    • Remove setAccessible call for class properties (PHP 8.5) by @Kanti in #114
    Open source →
    Release notes
    • Remove setAccessible call for class properties (PHP 8.5) by @Kanti in https://github.com/laravel/serializable-closure/pull/114
    Open source →
  11. v2.0.5 22 Sep 2025
    Release notes
    • support function attributes with array arguments by @erikgaal in https://github.com/laravel/serializable-closure/pull/113
    Open source →
  12. v2.0.4 19 Mar 2025
    Release notes
    • Fix namespaces for PHP 8.4 by @jlherren in https://github.com/laravel/serializable-closure/pull/112
    Open source →
  13. v2.0.3 11 Feb 2025
    Release notes
    • Fix unable to serialize PHP8.4 object with virtual property by @crynobone in https://github.com/laravel/serializable-closure/pull/108
    Open source →
  14. v2.0.2 24 Jan 2025
    Release notes
    • Supports Laravel 12 by @crynobone in https://github.com/laravel/serializable-closure/pull/105
    Open source →
  15. v2.0.1 16 Dec 2024
    Release notes
    • Fix broken code for ternary operator with class instantiation with omitted parentheses by @panzer-punk in https://github.com/laravel/serializable-closure/pull/102
    Open source →
  16. v2.0.0 19 Nov 2024
    Release notes
    • [2.x] Fix namespaced closures being considered first class callables by @nunomaduro in https://github.com/laravel/serializable-closure/pull/97
    • [2.x] Cleanup phpunit.xml by @Jubeki in https://github.com/laravel/serializable-closure/pull/95
    • [2.x] PHP 8.4 support by @Jubeki in https://github.com/laravel/serializable-closure/pull/90
    • [2.x] Supports PHPStan 2 by @crynobone in https://github.com/laravel/serializable-closure/pull/100
    • Prepare 2.0.0 release by @crynobone in https://github.com/laravel/serializable-closure/pull/99
    Open source →
  17. v1.3.7 14 Nov 2024

    Nothing published for this version

  18. v1.3.6 11 Nov 2024
    Release notes
    • Fix repeated word "the" in code comment by @caendesilva in https://github.com/laravel/serializable-closure/pull/98
    Open source →
  19. v1.3.5 23 Sep 2024
    Release notes
    • CI Improvements by @crynobone in https://github.com/laravel/serializable-closure/pull/94
    Open source →
  20. v1.3.4 02 Aug 2024
    Release notes
    • [1.x] Adds tests regarding carbon instances by @nunomaduro in https://github.com/laravel/serializable-closure/pull/82
    • Fix bug related to readonly properties by @rust17 in https://github.com/laravel/serializable-closure/pull/87
    Open source →
  21. v1.3.3 08 Nov 2023
    Release notes
    • Fixes switch cases namespace resolution by @nunomaduro in https://github.com/laravel/serializable-closure/pull/80
    Open source →
  22. v1.3.2 17 Oct 2023
    Release notes
    • Fixes FQCN on anonymous classes definition by @nunomaduro in https://github.com/laravel/serializable-closure/pull/75
    Open source →
  23. v1.3.1 14 Jul 2023
    Release notes
    • Fixes namespace resolution on named arguments by @nunomaduro in https://github.com/laravel/serializable-closure/pull/69
    Open source →
  24. v1.3.0 30 Jan 2023
    Release notes

    Changed

    • Add support for specifying if it should sign by @olivernybroe in https://github.com/laravel/serializable-closure/pull/62
    • Fixes and tests unsigned closures by @nunomaduro in https://github.com/laravel/serializable-closure/pull/64
    Open source →
  25. v1.2.2 08 Sep 2022
    Release notes

    Changed

    • Adds PHP 8.2 Support by @driesvints in https://github.com/laravel/serializable-closure/pull/57
    Open source →
  26. v1.2.1 26 Aug 2022
    Release notes

    Fixed

    • Fixes serialization of date carbon objects by @nunomaduro in https://github.com/laravel/serializable-closure/pull/56
    Open source →
  27. v1.2.0 16 May 2022
    Release notes

    Added

    • Adds Function Attributes support by @nunomaduro in https://github.com/laravel/serializable-closure/pull/46
    • Adds support for closure inside context with enum property by @ksassnowski in https://github.com/laravel/serializable-closure/pull/47
    Open source →
  28. v1.1.1 11 Feb 2022
    Release notes

    Fixed

    • Fixes first class callables namespaces by @nunomaduro in https://github.com/laravel/serializable-closure/pull/39
    Open source →
  29. v1.1.0 01 Feb 2022
    Release notes

    Changed

    • Adds support for first class callable syntax (#33)
    Open source →
  30. v1.0.5 30 Nov 2021
    Release notes

    Fixed

    • Fixes serialisation of closures with named arguments code (#29)
    Open source →
  31. v1.0.4 16 Nov 2021
    Release notes

    Fixed

    • Fixes the serialization of Enum objects (#28)
    Open source →
  32. v1.0.3 07 Oct 2021
    Release notes

    Fixed

    • Possible stream protocol collision with opis/closure (#23)
    Open source →
  33. v1.0.2 29 Sep 2021
    Release notes

    Fixed

    • Fixes serialization of closures that got rebound (#19)
    Open source →
  34. v1.0.1 29 Sep 2021
    Release notes

    Fixed

    • Fixes null safe operator with properties (#16)
    Open source →
  35. v1.0.0 14 Sep 2021
    Release notes

    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