Replace mod yaml with php lib class