ID Generator in PHP with Source Code

Language

ID Generator in PHP

This simple project is called the Simple ID Generator Web App. This project was developed using PHP GD Library's Image Function. This project will help you to learn to create a web application that generates an Image that is mainly featured to create an Identification Card in this simple project. The source code contains the functions and ideas/strategies of the design positions, sizes, and many more on creating an Image using PHP. This simple project was developed using PHP, GD Library, HTML, CSS, Javascript, and Bootstrap for the design. To download the Bootstrap CSS Framework, just click the link https://getbootstrap.com

How it works

Users only need to input their name and birthday. After that, click the "Generate ID" button to create their ID Card. The ID Card containing a static/default picture, Auto-Generated ID Number, Name, Auto calculated age, birthdate, date issued, header, footer, and background image.

Features

  • Personal Information Form Field
  • Generate ID Card
  • Display Generated ID Card
  • Download the Generated ID Card

Plugins Used

As I have said above that the input fields are only for name and birthday which means some other information is programmed statically. It is my challenge for you as a PHP Coder to create additional fields to dynamically set the other information. By that, this will help you to understand more on how to use the GD Library's Image function.

The Full source code for Age Calculation is available here

If you don't want my ID template, you are free to create your own using Adobe Photoshop

How to Run

Requirements

  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)

Installation/Setup

  1. Open your XAMPP/WAMP's Control Panel and start the "Apache".
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the Simple ID Generator Web App in a browser. i.e. http://localhost/id-card-generator/

DEMO

Hope you enjoy the code. Happy PHP Developing :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment