php / front end dependency handling