Download the PHP package spiral-packages/serializable-closure without Composer
On this page you can find all versions of the php package spiral-packages/serializable-closure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spiral-packages/serializable-closure
More information about spiral-packages/serializable-closure
Files in spiral-packages/serializable-closure
Package serializable-closure
Short Description Laravel Serializable Closure bridge for Spiral Framework
License MIT
Homepage https://github.com/spiral-packages/serializable-closure
Informations about the package serializable-closure
Laravel Serializable Closure bridge for Spiral Framework
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP 8.1+
- Spiral framework 3.0+
Installation
You can install the package via composer:
After package install you need to register bootloader from the package.
Note If you are using
spiral-packages/discoverer
, you don't need to register bootloader by yourself.
Configuration
The package configuration provides the ability to set up a secret key that the
Laravel\SerializableClosure\SerializableClosure
class will use for signing.
Create a file app/config/serializable-closure.php
.
Add the secret
parameters.
For example:
Usage
Using with Spiral\Serializer\SerializerManager
.
For example:
Also, you can set closure to be the default serializer in the serializer
config file and use
Spiral\Serializer\SerializerInterface
.
Example:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
All versions of serializable-closure with dependencies
laravel/serializable-closure Version ^1.2
spiral/boot Version ^3.0
spiral/serializer Version ^3.0