PHP prototype of my LaTeX document generator