Built as a mini-project during my Bachelor's degree (2020), this is a complete salon booking and management system built with PHP, MySQL, and Bootstrap.
Customer Side
- User registration and login
- Browse services and packages with pricing
- Book appointments (date, time, stylist)
- Home service booking
- Real-time chat with salon workers
- Payment integration
- View and manage bookings
- User profile management
- Leave feedback
Admin Dashboard
- Manage services and packages (add/edit/delete)
- Manage workers (add/edit/delete with photo upload)
- View all appointments and bookings
- View and reply to customer queries
- Email notifications via PHPMailer
- User management
- Revenue/booking overview
| Layer | Technology |
|---|---|
| Backend | PHP 7.4 |
| Database | MySQL / MariaDB |
| Frontend | HTML5, CSS3, Bootstrap 4, jQuery |
| Admin UI | Material Dashboard (Bootstrap) |
| PHPMailer | |
| Auth | PHP Sessions + password_hash() |
- All database queries use prepared statements (no SQL injection)
- Passwords stored using
password_hash(PASSWORD_DEFAULT)(bcrypt) - Input sanitisation on all form fields
- File upload validation (type + size checks)
- Session-based authentication
- PHP 7.4+
- MySQL / MariaDB
- A local server: XAMPP, WAMP, or MAMP
-
Clone the repo
git clone https://github.com/Chithranjaly/barbersclub.git cd barbersclub -
Import the database
- Open phpMyAdmin
- Create a new database called
salon - Import
salon.sql
-
Configure the database connection
Copy
.env.exampleto.envand fill in your credentials:DB_HOST=localhost DB_USER=root DB_PASS= DB_NAME=salonOr edit
salon/dbconnect.phpdirectly for local dev. -
Run the project
- Place the
salon/folder inside your server's web root (e.g.htdocs/for XAMPP) - Visit
http://localhost/salon/
- Place the
| Role | Password | |
|---|---|---|
| Admin | admin@barbersclub.com | Admin@123 |
| User | user@barbersclub.com | User@123 |
salon/
├── index.php # Public homepage
├── login.php # Login page
├── registration.php # User registration
├── dbconnect.php # Database connection
├── admin/
│ └── html/ # Admin dashboard pages
│ ├── adminhomepage.php
│ ├── addservice.php
│ ├── addworkers.php
│ ├── viewusers.php
│ └── ...
├── pretty/ # Customer-facing pages (logged-in)
│ ├── index.php
│ ├── bookings.php
│ ├── services.php
│ └── ...
└── chat/
└── index.php # Live chat feature
(Add screenshots here after deployment)
- Full MVC-style separation between admin and customer views
- PHP session management and role-based access control
- Relational database design with foreign key constraints
- File upload handling and validation
- Email integration using PHPMailer
- Responsive UI design with Bootstrap