spyrmp/json-serializer-deserializer

Serialize php arrays to json. Deserialize json to php arrays.

Installs: 85

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/spyrmp/json-serializer-deserializer

v1.0.0 2022-01-12 12:00 UTC

This package is auto-updated.

Last update: 2025-09-13 00:21:04 UTC


README

This library is serializing simple php arrays to json string also deserialize json to php arrays

Install

This project can be installed via Composer run the following command:

composer require spyrmp/json-serializer-deserializer

Usage

$json = \Spyrmp\JsonSerializerDeserializer\Json::serialize(["name" => "test_name", "lastname" => "test_lastname"]);
$deserializedJson =  \Spyrmp\JsonSerializerDeserializer\Json::deserialize('{"name":"test_name","lastname":"test_lastname"}');