Download the PHP package maciej-sz/pj-freeze without Composer
On this page you can find all versions of the php package maciej-sz/pj-freeze. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maciej-sz/pj-freeze
More information about maciej-sz/pj-freeze
Files in maciej-sz/pj-freeze
Download maciej-sz/pj-freeze
More information about maciej-sz/pj-freeze
Files in maciej-sz/pj-freeze
Vendor maciej-sz
Package pj-freeze
Short Description PHP to JSON Serializer/Deserializer
License MIT
Package pj-freeze
Short Description PHP to JSON Serializer/Deserializer
License MIT
Please rate this library. Is it a good library?
Informations about the package pj-freeze
pj-freeze
PHP to JSON Serializer/Deserializer
Features
- Serialization to JSON
- Unserialization from JSON
- Circular-reference handling
- Corresponding JavaScript library is available to read serialized data on the browser side
Usage
This package can be used to serialize and unserialize data objects that contain circular references.
Example: basic round-trip
Example: persisting round-trip
An additional step is required for the serialization result to be persisted: PHP's standard json_encode()
function has to be called. The json_encode()
won't produce "Recursion detected" error this time.
Example: circular reference
Using only json_encode()
:
Using PjFreeze
:
Installation
Via composer:
All versions of pj-freeze with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package maciej-sz/pj-freeze contains the following files
Loading the files please wait ....