Common standalone functions to be reusse in php project