使用PHP或JavaScript绘制矢量头像

I'm working on a php project.

I'm provided with some data like race,height,weight,martial status,etc. Based on these inputs, I want to draw a vector image, which can be a svg or any format.

Is it possible to do so? If it is possible, how can I do that? I can't put some set of images and use them according to the data as, i have very huge data.

I want to draw a vector image dynamically based on the data. Please help.