A simple, modern PHP web application to generate personalized certificates. Users can enter their name and organization, and download a custom certificate image.
- Generate certificates with custom name and organization
- Uses custom fonts and a template image
- Downloadable PNG output
- Modern PHP code structure (OOP)
- Easy to extend with new templates or fields
- Docker (recommended)
- Or PHP 7.4+ (with GD extension enabled) for manual setup
- Build the Docker image:
docker build -t certificate-generator .
- Run the Docker container:
docker run -p 8000:80 certificate-generator
- Open your browser and visit:
http://localhost:8000
This will run the app in an isolated environment with all dependencies included.
- Ensure PHP GD extension is enabled:
php -m | grep gd
- Start the PHP built-in server:
php -S localhost:8000 -t public
- Visit http://localhost:8000 in your browser.
assets/
images/ # Certificate templates
fonts/ # Font files
public/
index.php # Entry point
generated/ # Generated certificates
src/
CertificateGenerator.php # Main logic
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See LICENSE for details.