spyrmp / json-serializer-deserializer
Serialize php arrays to json. Deserialize json to php arrays.
Package info
github.com/spyrmp/json-serializer-deserializer
pkg:composer/spyrmp/json-serializer-deserializer
v1.0.0
2022-01-12 12:00 UTC
Requires
- php: >=7.0.0
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 9.5.*
- symfony/var-dumper: ^5.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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"}');