Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned. Use opis/closure instead.
Generated on May 8, 2024 via composer

jeremeamia/superclosure 2.4.0

Serialize Closure objects, including their context and binding
Package summary
Share
1
issue
1
high severity
meta
1
2
licenses
2
MIT
1
BSD-3-Clause
Package created
21 Mar 2012
Version published
21 Mar 2018
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

1

1 high severity issue

high
via: jeremeamia/superclosure@2.4.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
jeremeamia/superclosure@2.4.0
symfony/polyfill-php56@v1.20.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
nikic/php-parser@v4.19.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of jeremeamia/superclosure 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
nikic/php-parserv4.19.1-BSD-3-Clause
prod
symfony/polyfill-php56v1.20.01.99 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jeremeamia/superclosure do?

The jeremeamia/superclosure is a highly functional PHP library that allows for the serialization of closures and anonymous functions. Despite PHP's default restrictions against serializing closures, the SuperClosure library makes this serialization not only possible but straightforward and efficient. Services such as Laravel, InterNations HTTP mock, Jumper and several others have incorporated SuperClosure into their projects.

How do you use jeremeamia/superclosure?

Making use of SuperClosure is pretty straightforward. First, you need to install the composer package using the command composer require jeremeamia/superclosure. Once installed, you can create a new object of Serializer class and call methods serialize and unserialize to serialize and unserialize closures. Here is an example:

use SuperClosure\Serializer;

$serializer = new Serializer();

$greeting = 'Hello';
$hello = function ($name = 'World') use ($greeting) {
    echo "{$greeting}, {$name}!\n";
};

$serialized = $serializer->serialize($hello);
$unserialized = $serializer->unserialize($serialized);

$unserialized('Jeremy');

In this example, $hello function is serialized and unserialized. After unserialization, it's called with the argument 'Jeremy'.

Where are the jeremeamia/superclosure docs?

The full documentation for the jeremeamia/superclosure package can be found in the README file on the GitHub repository page at https://github.com/jeremeamia/super_closure. The README contains detailed guidance on how to install and use the library, what features it supports, and known caveats to take into consideration when using the library. The examples of code usage are also provided.