A php diagram generator