A simple E-certificates generator made with PHP where people can generate and download their e-certificates.
The installation is super easy. You just need to upload all files to your webserver directory, with the SQL(Database) File attached to this Project.
Replace dummy 'certificate.jpg' with the jpg file of your certificate design. Make sure that the design does not have the name of the participant, which will be written while generating the e-certificate.
Configure the dimension of PDF file in points; width and height in 'register.php' file.
$pdf = new FPDF('L');
Configure the font family and the font size.
$pdf->SetFont("Arial","B","12");
The following fonts are already included in the package: Courier, Droid Serif, Helvetica, Roboto Bold, Roboto Regular, Symbol, Times Roman, Zapfdingbats. More fonts can be added as per this tutorial.
Configure the font color in RGB.
$pdf->SetTextColor(10, 43, 73);
Change the text alignment (6th parameter) as per your requirement. Check the mannual for more info.
$pdf->Cell(0, 10, "$name", 0, 1, "L");
To make sure that only people who have attended the event can receive the e-certificate, we will have a Database of names that will be used to verify the name of the participant while generating the e-certificate.
Create a Database Connection and import the given SQL
File.
The home page can be customized as per your need by changing HTML (index.html) and CSS (css/style.css
).
To make sure that the certificate is genuine or not I have added a barcode Facility in it only people who have attended the event can be able to scan the e-certificate.
$pdf->Image('Verify.png',125,151,45,45);
The Registration is only for admin purpose to generate the certificates and this page can be customized as per your need by changing HTML (index.html) and CSS (css/main.css
).
I have used the awesome FPDF with QR-LIB for this application.