Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 550 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 550 Bytes

Json Serializer/Deserializer for PHP

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"}');