php locator generator component to easy up locator generation