acfatah/serializable-closure

This package is abandoned and no longer maintained. No replacement package was suggested.

A class that enables serialization of closure.

dev-master 2016-09-02 21:40 UTC

This package is auto-updated.

Last update: 2020-09-29 05:41:35 UTC


README

Build Status Coverage Status

A class that enables serialization of closure.

$serializable = new Acfatah\SerializableClosure\SerializableClosure(
    function () {
        // this closure does something...
    }
);

Or,

$serialized = Acfatah\SerializableClosure\Serializer::serialize(
    function () {
        // this closure does something...
    }
);