Hospital Management System in PHP with Source Code

A completely functional project based on a Hospital Management System in PHP. The following PHP project contains important elements that first-year and second-year IT students can use in their college projects.

This Hospital Management System Project In PHP is able to register a patient for the hospital. Several useful features are included to assist users in keeping track of their healthcare data, transactions, and other activities.

A simple and well-implemented system, as well as a well-implemented web application, are both based on the concept of this system.

Just click the Download button at the bottom of this article to get a free PHP MySQL hospital management system project with source code files.

About Hospital Management System PHP MySQL Project

The main focus of this PHP-based hospital management system project is on dealing with the patient, doctor, and hospital records.

In addition, the system lists all of the various hospital departments as well as the doctors who work there. A patient’s personal account can also be created through the system.

There are three sections to this project. Panels for Admin, Patients, and Doctors are available. The user can simply make an appointment on this web application’s overview.

In other words, each user will be required to fill out a client-side appointment form. The patient’s name, address, phone number, and department and doctor selections are all included in the form.

The system also establishes personal accounts for each patient during this procedure.

Admin Panel

The administrator has complete control over the system. He or she has access to all of the hospital’s existing records. Patients, doctors, departments, treatment kinds, and medical records may all be managed by an administrator.

A doctor’s account may only be created by an administrator. In order to do so, the administrator must also create accounts for the doctor in other hospital departments.

All appointment records can also be seen by the administrator. In addition, the administrator must keep track of each patient’s treatment and payment information.

The user must input the discount amount and the justification for it in order to keep track of each patient’s payment. The patient may see all of the reports from their own personal accounts after making the payment.

Doctor’s Panel

The technology will be accessible to each doctor through their own personal account. All pending appointments may be viewed by the doctor here.

There are choices available for the doctor to approve or deny each visit. The doctor can check the patient’s profile and appointment record after approving the appointment.

For the remainder, the doctor must keep each patient healthy by prescribing the appropriate therapies. The user must choose a treatment type, a description, a date, and upload treatment files in order to create a treatment record.

The doctor can now go on to the prescription area after completing the treatment records. The doctor must choose a date, an amount, and a dose for the prescription, as well as choose the drug that is accessible.

The system creates the patient’s entire cost when the prescription record is submitted.

Patient’s Account

The user may log in to the system and monitor the status of their appointment after making it for the first time. Each appointment is set to pending by default.

In order to begin their treatment procedure, the doctor must first authorize or reject it. Patients also have a right to cancel their appointments at any time.

A patient’s panel allows him or her to update his or her information, as well as access treatment and prescription data.

Also, the patient may access all of the records in the treatment area, including the kind of therapy, the name of the doctor, the date, and the total cost.

The date, name, and amount of the drugs, as well as the total bill fee, are all displayed in the prescription section.

Hospital Services

Departments, treatment methods, and medicine are all part of the hospital’s services. He/she must provide the name, description, and status of the hospital departments he/she wishes to add.

During the registration of doctors as well as the appointment of patients, these departments are vital. In addition, all of the treatment kinds must be set up by the administrator.

The name, description, total cost, and status of the therapy must all be entered by the administrator. The user must also input the name, cost, description, and status of the drug in the same way.

In addition, the administrator will be able to get a breakdown of the overall number of patients, doctors, and hospital revenues.

A current responsive CSS framework, Materialize, is used for its UI elements, as well as some Vanilla CSS, to provide a clean and basic dashboard with simple color combinations for a better user experience when using this Hospital Management System Project in PHP MySQL.

Presenting a new PHP MySQL project for a Hospital Management System that includes an admin panel with patient and doctor panels, as well as a well-informed resource for learning.

Available Features:

Here are the available features of Hospital Management System Using PHP.

  • Admin Panel
  • Doctor Panel
  • Patient Panel
  • Client-Side
  • Make Appointment
  • Approve/Reject Appointments
  • Treatment Records
  • Prescription Records
  • Manage Billings
  • Payment Report
  • Patient Report Panel
  • Hospital Department Management
  • Treatment Types Management
  • Manage Medicine Records
  • Set Doctor’s Timing
  • Set Doctor’s Personal Charge
  • Update Profile
  • Total Hospital Earnings

Project Overview

Project Name:Hospital Management System PHP Project
Language/s Used:PHP
PHP version (Recommended):5.6 or Newer
Type:Web Application, Website
Developer:IT Source Code
Hospital Management System in PHP with Source Code – Project Overview

Hospital Management System in PHP with Source Code Steps on How to run the Project

Time needed: 5 minutes

These are the steps on how to run Hospital Management System in PHP with Source Code

  • Step 1: Download the Source Code

    First, download the source code given below.

  • Step 2: Extract the Downloaded Source Code

    After you finish downloading the project, extract the source code and copy the file folder then head over to your XAMPP directory. And inside the “htdocs” folder, paste the source code folder.

  • Step 3: Copy the Downloaded Source Code

    Copy the source code folder and paste it into the xampp/htdocs folder.

  • Step 4: Open XAMPP

    Open XAMPP and start the apache and MySQL

  • Step 5: Open your favorite Browser

    Open a browser and go to URL “http://localhost/phpmyadmin/

  • Step 6: Create a Database Name

    Click on the databases tab and Create a database naming “hms”.

  • Step 7: Import “hms.sql” file

    Click on browse file and select “hms.sql” file which is inside the “Database” folder and after import click Go“.

  • Step 8: Open a new tab and type the folder name “hms”

    Open a browser and go to the URL http://localhost/hms/”.

  • Step 9: Enjoy using the Hospital Management System in PHP

    The final step, explore the system and you can manipulate the Patient, Doctor, and Admin accounts.

    Admin Account:
    Username: admin
    Password: 123456789

    Doctor Account:
    Username: tamayo
    Password: 123456789

Download Source Code below

Download Hospital Management System in PHP with Source Code by clicking the download button below.

Anyway, if you want to level up your programming knowledge, especially PHP, try this new article I’ve made for you Best PHP Projects With Source Code Free Download.

Password: itsourcecode


This Website Project was developed using PHP, JavaScript, and CSS. Talking about the features of this system, it contains the admin section and the user section.

All the editing’s, updating, managing doctors, patients, appointments, and editing treatment facilities are from the admin section.

The main feature of this system is to provide the browser to get appointments from a doctor through the internet instead of going there and fixing an appointment.

The design of this system is pretty simple so that the user won’t get any difficulties while working on it.


If you have any questions or suggestions about Hospital Management System in PHP with Source Code, please feel free to leave a comment below.

17 thoughts on “Hospital Management System in PHP with Source Code”

Leave a Comment