StayMate is a PG and hostel finder PHP project built with PHP 8, MySQL and Bootstrap 5. Students and freshers moving to a new city can search verified PGs by city, area or college, budget, sharing, food and amenities, and see which beds are free in every room before they travel. PG owners list their PGs, rooms and beds, and the admin verifies every listing before it goes live.
The highlight is safe bed booking: the tenant picks one exact bed, the bed is locked so two people can never book it together, held for 15 minutes for the token payment (Razorpay test mode or demo mode), and confirmed by the owner with a booking slip that has a QR code.
How it works
- Owner registers, the admin approves, and the owner adds a PG with photo, food, amenities, rules, rooms and beds
- Admin verifies the PG (approve, or reject with a note)
- Tenant searches with filters, shortlists and compares up to 3 PGs, and requests a visit slot
- Owner accepts the visit; the tenant picks a free bed and pays a 25% token with a printable receipt
- Owner confirms the booking (booking slip with QR) and later marks the tenant moved in and moved out
- Unpaid holds (15 minutes) and unanswered bookings (48 hours) are released automatically; cancelled or rejected tokens are refunded through the admin
- Only tenants who moved in can rate and review a PG
Users
- Tenant (student / working person): search, shortlist, compare, visits, bed booking, token payment, booking slip, cancel, review
- PG Owner: PGs, rooms and bed board, visit requests, confirm / reject bookings, moved in / out, reviews
- Admin: PG verification, cities, tenants, owners, bookings and refunds, payments, reports, notices, settings
Highlights
- 3 roles + public website, 42 pages, 13 database tables
- Filter search with live bed icons on every PG card
- Bed booking with row lock (no double booking) and auto release
- Razorpay test mode + offline demo mode, printable receipt and booking slip with QR code
- Two-step login, form validation on browser and server, prepared statements, CSRF protection, password hashing, safe photo upload
- Admin dashboard with occupancy bars and donut chart, reports with date filter and print
- Demo logins: admin / admin123, rahul@gmail.com / 123456 (tenant), mahesh@gmail.com / 123456 (owner)
What you get
- Complete PHP source code with SQL file and sample data
- Project report (52 pages) with 8 diagrams, abstract, explanation with viva questions, setup guide (all PDF)
- Screenshots and README with a 10-minute demo script
Who can use this project
BCA, BSc CS / IT, MCA and Diploma final year students, and Engineering 2nd / 3rd year students for a micro project.
Frequently asked questions
Does it run without internet? Yes. Demo payment mode works offline on XAMPP; only Razorpay test payments and the map need internet.
Is the payment real? No. Razorpay is used in test mode, so no real money is charged.
Can I change colours and the site name? Yes. The site name is changed in Admin Settings, and the colours are CSS variables in one file.
Is documentation included? Yes. Report, abstract, explanation with viva Q&A and setup guide are included as PDF.