cuongdd2 / php-utils   1.0.3

Apache License 2.0 GitHub

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

Scala versions: 2.11 2.10

php-utils

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