zumba/json-serializer
A PHP library that serializes variables and objects to JSON and restores them, including binary data, nested objects, recursion, and closures. Requires PHP 7.2+; never unserialize untrusted input.
Json Serializer for PHP serializes PHP variables to JSON and restores them, much like serialize()/unserialize() but with a JSON-encoded string as output. It supports scalars, null, arrays, objects, binary data, nested structures, and properties not declared on the original class (e.g. stdClass). Requires PHP >= 7.2.
Security warning: never unserialize untrusted input. The embedded @type key names the class to restore, so an attacker controlling the payload can instantiate arbitrary autoloadable classes, including ones with risky __wakeup() behavior.
How can I help you explore Laravel packages today?