build php library