Download the PHP package reagordi/serializable-closure without Composer
On this page you can find all versions of the php package reagordi/serializable-closure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reagordi/serializable-closure
More information about reagordi/serializable-closure
Files in reagordi/serializable-closure
Package serializable-closure
Short Description Reagordi Serializable Closure provides an easy and secure way to serialize closures in PHP.
License BSD-3-Clause
Homepage https://reagordi.com/
Informations about the package serializable-closure
Reagordi Serializable Closure
Reagordi Serializable Closure provides an easy and secure way to serialize closures in PHP.
Requirements
- PHP 8.2 or higher.
Installation
The package could be installed with composer:
General usage
You may serialize a closure this way:
Caveats
- Anonymous classes cannot be created within closures.
- Attributes cannot be used within closures.
- Serializing closures on REPL environments like Laravel Tinker is not supported.
- Serializing closures that reference objects with readonly properties is not supported.
Testing
Unit testing
The package is tested with PHPUnit. To run tests:
Mutation testing
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
Code style
Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:
Dependencies
Use ComposerRequireChecker to detect transitive Composer dependencies.
License
The Reagordi Serializable Closure is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Reagordi Group.
Support the project
Follow updates
All versions of serializable-closure with dependencies
reagordi/contracts-serializable-closure Version ^1.0
reagordi/support-serializable-closure Version ^1.0