Certificate generator for Technology Community Extracurricular at SMK Negeri 1 Pemalang.
- PHP >= 7.4
- Node.js >= 12.x
- Composer v2
- NPM
-
Clone this repository
git clone https://github.com/tecopro/certificate-generator.git
-
Change current directory to this repository folder
cd certificate-generator
-
Install dependencies (PHP)
composer install
-
Install dependencies (Node.js)
npm install
-
Done~
Do it one-by-one, starting from generating and then converting the resulting image into a PDF file.
-
Generate first
composer run generate
-
Convert it
npm run convert
Instead of wasting time to generate first and then convert, it's better to use the following command to generate and also convert directly.
npm run generate
If you want to use old or archived files, please overwrite certificate.php
, helper.php
, qrcode.php
in utils directory and spreader.php
in src directory according to the desired year.
All old or archived files are stored in archives folder or by year. For more advanced usage, you can configure each file in src or utils folder individually.
-
Requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's GD extension.
-
On Windows
- Open
php.ini
using text editor or notepad - Go to Dynamic Extensions
- Find
;extension=gd
or;extension=gd2
- Remove the semicolon (
;
) - Save file
- Open
-
On Linux
sudo apt install phpx.x-gd # change x.x to php version number, eg. php7.4-gd
-
-
Requires PHP extension ext-gmp * but it is missing from your system. Install or enable PHP's GMP extension.
-
On Windows
- Open
php.ini
using text editor or notepad - Go to Dynamic Extensions
- Find
;extension=gmp
- Remove the semicolon (
;
) - Save file
- Open
-
On Linux
sudo apt install phpx.x-gmp # change x.x to php version number, eg. php7.4-gmp
-
Code licensed under Apache 2.0 License.