Created php require algorithm