Question: how to create a pdf php?
Answer: TCPDF. Github | Homepage.
Snappy (wkhtmltopdf) Github Snappy Library | Github wkhtmltopdf. ... 
DOMPDF. Github. ... 
mPDF. mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. ... 
FPDF. Examples. FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. ...