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
Releases
latest 35-
v2.0.1521 Jul 2026Release notes
Open source →- Fix nested SerializableClosure in array property becoming a plain Closure by @lucasmichot in #172
Release notes
Open source →- Fix nested SerializableClosure in array property becoming a plain Closure by @lucasmichot in https://github.com/laravel/serializable-closure/pull/172
-
v2.0.1424 Jun 2026Release notes
Open source →- 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
Release notes
Open source →- 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
-
v2.0.1316 Apr 2026Release notes
Open source →Release notes
Open source →- feat: support closures in constant expressions (php8.5) by @calebdw in https://github.com/laravel/serializable-closure/pull/157
-
v2.0.1214 Apr 2026Release notes
Open source →- fix: closure from inside anonymous migration by @calebdw in https://github.com/laravel/serializable-closure/pull/156
-
v2.0.1107 Apr 2026Release notes
Open source →- [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
Release notes
Open source →- [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
-
v2.0.1020 Feb 2026Release notes
Open source →- Fix trying to access array offset on null by @bytestream in https://github.com/laravel/serializable-closure/pull/125
-
v2.0.903 Feb 2026Release notes
Open source →- 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
-
v2.0.808 Jan 2026Release notes
Open source →- Fix serialization of multiple closures on the same line by @michaelruelas in #120
Release notes
Open source →- Fix serialization of multiple closures on the same line by @michaelruelas in https://github.com/laravel/serializable-closure/pull/120
-
v2.0.721 Nov 2025Release notes
Open source →- Allow Pest v4.0 by @jnoordsij in #117
- Remove
setAccessiblecalls for properties by @jnoordsij in #115 - Test on PHP 8.5 by @jnoordsij in #116
- Fix GitHub Actions workflow and tweak Composer configuration. by @crynobone in #118
Release notes
Open source →- Allow Pest v4.0 by @jnoordsij in https://github.com/laravel/serializable-closure/pull/117
- Remove
setAccessiblecalls 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
-
v2.0.609 Oct 2025Release notes
Open source →Release notes
Open source →- Remove setAccessible call for class properties (PHP 8.5) by @Kanti in https://github.com/laravel/serializable-closure/pull/114
-
v2.0.522 Sep 2025Release notes
Open source →- support function attributes with array arguments by @erikgaal in https://github.com/laravel/serializable-closure/pull/113
-
v2.0.419 Mar 2025Release notes
Open source →- Fix namespaces for PHP 8.4 by @jlherren in https://github.com/laravel/serializable-closure/pull/112
-
v2.0.311 Feb 2025Release notes
Open source →- Fix unable to serialize PHP8.4 object with virtual property by @crynobone in https://github.com/laravel/serializable-closure/pull/108
-
v2.0.224 Jan 2025Release notes
Open source →- Supports Laravel 12 by @crynobone in https://github.com/laravel/serializable-closure/pull/105
-
v2.0.116 Dec 2024Release notes
Open source →- Fix broken code for ternary operator with class instantiation with omitted parentheses by @panzer-punk in https://github.com/laravel/serializable-closure/pull/102
-
v2.0.019 Nov 2024Release notes
Open source →- [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.0release by @crynobone in https://github.com/laravel/serializable-closure/pull/99
-
v1.3.714 Nov 2024Nothing published for this version
-
v1.3.611 Nov 2024Release notes
Open source →- Fix repeated word "the" in code comment by @caendesilva in https://github.com/laravel/serializable-closure/pull/98
-
v1.3.523 Sep 2024Release notes
Open source →- CI Improvements by @crynobone in https://github.com/laravel/serializable-closure/pull/94
-
v1.3.402 Aug 2024Release notes
Open source →- [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
-
v1.3.308 Nov 2023Release notes
Open source →- Fixes switch cases namespace resolution by @nunomaduro in https://github.com/laravel/serializable-closure/pull/80
-
v1.3.217 Oct 2023Release notes
Open source →- Fixes FQCN on anonymous classes definition by @nunomaduro in https://github.com/laravel/serializable-closure/pull/75
-
v1.3.114 Jul 2023Release notes
Open source →- Fixes namespace resolution on named arguments by @nunomaduro in https://github.com/laravel/serializable-closure/pull/69
-
v1.3.030 Jan 2023Release notes
Open source →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
-
v1.2.208 Sep 2022Release notes
Open source →Changed
- Adds PHP 8.2 Support by @driesvints in https://github.com/laravel/serializable-closure/pull/57
-
v1.2.126 Aug 2022Release notes
Open source →Fixed
- Fixes serialization of date carbon objects by @nunomaduro in https://github.com/laravel/serializable-closure/pull/56
-
v1.2.016 May 2022Release notes
Open source →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
-
v1.1.111 Feb 2022Release notes
Open source →Fixed
- Fixes first class callables namespaces by @nunomaduro in https://github.com/laravel/serializable-closure/pull/39
-
v1.1.001 Feb 2022 -
v1.0.530 Nov 2021 -
v1.0.416 Nov 2021 -
v1.0.307 Oct 2021 -
v1.0.229 Sep 2021 -
v1.0.129 Sep 2021 -
v1.0.014 Sep 2021