Opis Closure helps you overcome PHP's limitations regarding closure serialization, by providing a wrapper that will make them serializable.
The library is capable of serializing not only the closure itself, but also the data structures related to that particular closure, allowing for a very accurate reconstruction of the closure.
Opis Closure is shipped with a fast heuristic parser which supports the latest PHP 7 syntax and automatically resolves all constants, magic constants, classes, and functions used by a closure.
By strictly adhering to the semantic versioning rules, we guarantee that we will not introduce breaking changes during the lifecycle of a major release, making sure that every bit of functionality that will be added to the library is backward compatible and won't break your app.
The library is released under a permissive, business friendly, MIT license. The license grants you the right to use this software for both commercial or non-commercial purposes.
As an open-source company, we dedicate a large amount of our time for taking care of our libraries. This means that you can confidently use our open-source software, knowing that we will continuously maintain and improve it.
One of the best ways you could contribute to this project is by simply telling other developers about Opis Closure. The more people are using it, the greater are the chances to discover unknown bugs or security related issues, if any.
Have you stumbled upon a typo or some bad phrasing in our documentation? Found a bug in our code? Have some project-related questions? Just send us a pull request with your fixes, or open an issue on the repository's page and we will gladly help you.