Minimal Hospital Management System with PHP & MySQL

Managing hospital operations and patient records can become challenging without the proper tools. The Hospital Management System (HMS) built using PHP 8.2.12 and MySQL provides a clean, lightweight solution to efficiently manage patients and doctors. Featuring a responsive admin dashboard and an intuitive interface, it’s perfect for small hospitals and clinics.


Key Features

Secure Admin Login:
Session-based authentication ensures that only authorized users can access the system.

Manage Patients:
Add, edit, and delete patient records with the following fields:

  • Name
  • Age
  • Gender
  • Phone
  • Address
  • Assigned Doctor

Manage Doctors:
Add new doctors or delete existing ones (only if they are not linked to any patients).

  • Name

Patient Listing with Pagination:
View patient data in a paginated table for easy navigation and efficient management.

Feedback Alerts:
Simple success and error alert messages after every action.


Technology Stack

  • Backend: PHP 8.2.12 (Core PHP, no frameworks)
  • Database: MySQL
  • Frontend: HTML5, CSS3, JavaScript

Installation Guide

  1. Upload the project files to your server directory (e.g., htdocs in XAMPP).
  2. Create a new MySQL database.
  3. Import the provided database.sql file into your database.
  4. Update your database credentials in config.php.
  5. Access the system via your browser (e.g., http://localhost).

Default Admin Login

  • Username: admin
  • Password: admin123

Ideal Use Cases

  • Small Hospitals & Clinics: Manage patients and doctors easily without complex software.
  • Students & Developers: Learn PHP, MySQL CRUD operations, and session management.
  • Academic Projects: Perfect for hands-on learning and project assignments.

Why Choose This HMS?

This Hospital Management System strikes a balance between simplicity and essential features. Built without frameworks, it’s easy to customize and extend. Whether you are managing a small clinic or learning backend development with PHP, this project is a practical starting point.


Buy Hospital Management System

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top