acfatah/serializable-closure

A class that enables serialization of closure.

dev-master 2016-09-02 21:40 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...
    }
);