update  interface
add public interface
optimize php api