made php generic
added test file