Appearance
Certificate generators
Types of certificates
The system currently supports generating the following types of certificates:
- Membership Certificate
- Course Certificate (with an in-progress variant)
- Bootcamp Certificate (with an in-progress variant)
- Master Class Certificate
How is a certificate generated?
The generators make use of the GD library to generate certificates. This allows these images to be generated on the fly with minimal time and resource usage. The certificates are cached to reduce server load.
The certificate generator loads a blank certificate template in JPEG format along with fonts. It then positions various elements, such as the member’s name, course title, certificate ID, etc., onto the certificate.

Finally, it outputs the image data, which can be served in a response.
In PHP:
php
$imageObject = $certificateGenerator->getImage(...);
return response()->make($imageObject, 200)
->header('Cache-Control', 'max-age=63072000, public, immutable')
->header('Content-Type', 'image/jpeg')
->header('ETag', md5($imageObject));