add more php function and unit test