Move php functions to folder