Employees Pay Slip PDF Generator System with Email using PHP/OOP Free Source Code
Introduction
This simple project is an Employees Pay Slip PDF Generator System. This project is a web-based application developed in PHP and MySQL Database. The system provides an online platform for the company to generate the payslip of their employees. Management can directly send the employees' payslips easily without any hassle. This system has a pleasant user interface with the help of Bootstrap and AdminLTE Template. This has user-friendly features and functionalities.
About the Employees Pay Slip PDF Generator System
I developed this project using the following:
- XAMPP v3.3.0
- PHP
- MySQL Database
- HTML
- CSS
- JavaScript
- Ajax
- jQuery
- Bootstrap
- Font-awesome
- Bootstrap DataTables
- AdminLTE Template
- TCPDF
These Simple Employees Pay Slip PDF Generator System can be accessed only by the management. The management can store the list of departments and designations/positions in their company. In this system, management can simply encode the employees' pay slips and generate an encrypted PDF file. Aside from generating a pdf file, the management can also directly send the PDF Generated Pay Slips of the employees through email. The system has a default template for the mail to be sent that contains the payroll details and PDF attachment. Generated PDF Pay Slips are encrypted and the password of each file is the company ID or Code of each employee. The PDF File Pay Slip contain also a company logo watermark aside from the employee's payslip details. Email is being sent to employees using Google SMTP.
Features
- Secure Login and Logout
- Dashboard
- Department Management
- Add new Department
- List All Departments
- Update Department Details
- Delete Department Details
- Position Management
- Add new Position
- List All Positions
- Update Position Details
- Delete Position Details
- Employee Management
- List All Employees
- View Employee Details
- Update Employee Details
- Delete Employee Details
- Payroll Management
- List All Payroll
- View Payroll Details
- Update Payroll Details
- Delete Payroll Details
- List All Pay Slips
- View Pay Slips Details
- Generate PDF Pay Slip
- Send Generated PDF through Email
- Update Pay Slips Details
- Delete Pay Slips Details
- System User Management
- Add new System User
- List All System Users
- Update System User Details
- Delete System User Details
- System Information Management
The source code was developed only for educational purposes only. You can download the source code for free and modify it the way you wanted.
System Snapshots of some Features
Dashboard

Payroll List

Payroll Employees Pay Slip List

Pay Slip Details Modal

Pay Slip Email

Generated Pay Slip PDF

How to Run ??
Requirements
- Download and Install any local web server such as XAMPP.
- Download the provided source code zip file. (download button is located below)
- Download the project plugins at https://www.dropbox.com/s/upmqcggq5fm8cwt/php-pess_plugins.zip?dl=1
XAMPP Mail Configuration
- Locate your XAMPP's php.ini file and configure it just like the image below. Path (xampp/php)
- Locate your XAMPP's sendmail.ini file and configure it just like the image below. Path (xampp/sendmail)
Setup Sender's Google Account to send mail locally
- Go to "Google Account". Note: Login to your sender's Gmail Account.
- Select "Security" from the Left Side Menu.
- Scroll Down the Page to "Less Secure App Access"
- Enable "Allow less secure apps"
System Installation/Setup
- Open your XAMPP php.ini file and Enable/Uncomment the GD Library.
- Open your XAMPP Control Panel and start Apache and MySQL.
- Extract the downloaded source code zip file.
- Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
- Extract the downloaded plugins zip file.
- Copy the extracted plugins folder and paste it into the source code root path.
- Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
- Create a new database naming pess_db.
- Import the provided SQL file. The file is known as pess_db.sql located inside the database folder.
- Browse the Employees Pay Slip PDF Generator System in a browser. i.e. http://localhost/pess/.
Default Admin Access
Username: admin
Password: admin123
DEMO VIDEO
That's it. You can now explore the features and functionalities of this Employees Pay Slip PDF Generator System in PHP. I hope this will help you with what you are looking for and you'll find something useful for your future projects.
Explore more on this website for more Free Source Codes and Tutorials.
Enjoy :)
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.
Comments
Hi, If the PDF Generation is…
Hi, If the PDF Generation is working fine but receiving through email is not, kindly double-check the mailing configuration. You can also refer to the provided demo video. Thanks,
Sending Email Failed
Hi Mohammed, for locally…
Hi Mohammed, for locally using XAMPP the filenames are included in the article under the "How to Run Section" and if you are using different virtual servers, please check the equivalent configuration for the server you are using. Thanks
Have you followed all the…
Have you followed all the instructions? If yes, you can get more details about the error using the browser DevTools.
Login Issue
Sending payslip to EMAIL error
Login details invalid
generate pay slip limited
the default login of admin…
generate payslip pdf over record 10
can I use it for my company?…
Hii there, i can't generate…
Menu Not Complete
Add new comment
- Add new comment
- 18593 views