ohze / php-utils

Utils for serialize/un-serialize Scala object to PHP serialized string

GitHub

php-utils

Build Status

Utils for serialize/un-serialize Scala object to PHP serialized string

This project is ported from Java project Pherialize. Credit to kayahr.

Sample usage

	PhpObject.stringify(Map("key" -> "value", "key2" -> "value2")
	PhpObject.parse("a:2:{i:0;i:123;i:1;s:3:\"abc\";}")

Output

	a:2:{s:3:"key";s:5:"value";s:4:"key2";s:6:"value2";}
	Map(0 -> 123, 1 -> "abc")

See test cases for more information :D

Changelogs

see CHANGES.md

Licence

This software is licensed under the Apache 2 license: http://www.apache.org/licenses/LICENSE-2.0

Copyright 2014-2017 Sân Đình (https://sandinh.com)