pure php library