andregardi / qrCertificate

PHP class to create a A4 printable certificate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic certificates with QR Code

Create dynamic course certificates. Render on A4 printable area. Print with QR Code to redirect to an url and validate the certificate.

Example

require_once('qrCertificate/qrCertificate.php');

$qr = new qrCertificate;
$qr->backgroundImg="qrCertificate/templateBackground.jpg";
$qr->acknowledge="Awarded to";
$qr->name="Napoleon Bonaparte";
$qr->achievement="successfully completed the army's artillery course.";
$qr->qr='https://en.wikipedia.org/wiki/Napoleon';
$qr->date="May<br>1851";

$qr->render()

Preview

You will also need

paper-css For the A4 formating printable area.

phpqrcode Generates the qrcode images

About

PHP class to create a A4 printable certificate


Languages

Language:PHP 75.2%Language:CSS 24.8%