Clinic Management System

Замовник: AI | Опубліковано: 08.11.2025

# Clinic Management System NOTE:= at time im only provided screenshot of the my project when if you really want i will give you a whole project zip file so you can edit according to you and publish A PHP MVC-based clinic management system with role-based access control and appointment scheduling. ## Features - **User Roles**: Admin, Doctor, and Patient - **Authentication**: Single login page with role-based redirection - **CRUD Modules**: Patients, Appointments, Users (admin only) - **Security**: Password hashing, sessions, form validation, CSRF token - **Design**: Clean, modern, responsive UI with light purple and pastel peach theme ## Setup Instructions ### Requirements - PHP 7.4 or higher - MySQL 5.7 or higher - XAMPP, WAMP, MAMP, or any PHP development environment ### Installation 1. **Clone or download** the repository to your web server directory (e.g., `htdocs` for XAMPP) 2. **Create the database**: - Open phpMyAdmin or your MySQL client - Create a new database named `diwali` - Import the SQL file from `sql/clinic_schema.sql` 3. **Configure the database connection**: - Database connection is already configured in `core/database.php` - Default settings: host=localhost, dbname=diwali, user=root, password="" - Modify if your setup differs 4. **Start your web server** and navigate to the project URL: - For XAMPP: http://localhost/Project/clinic/ ### Default Access The system doesn't come with pre-populated users. You'll need to: 1. Register a new user through the registration form 2. Select the appropriate role (Patient, Doctor, or Admin) ## Directory Structure ``` clinic/ ├── app/ │ ├── controllers/ # Application controllers │ ├── models/ # Database models │ ├── views/ # UI templates │ └── config/ # Configuration files ├── core/ # Core MVC framework files ├── public/ # Public assets (CSS, JS, images) │ └── assests/ │ └── css/ │ └── style.css └── sql/ # Database schema └── clinic_schema.sql ``` ## Usage - **Admin**: Manage users, appointments, and system settings - **Doctor**: View appointments, add medical notes - **Patient**: Book appointments, view medical history ## Security - Passwords are hashed using PHP's password_hash() - CSRF protection for all forms - Input validation and sanitization - Session-based authentication