Generic php backend lib.