TrayTime is a college canteen food ordering system PHP project built for BCA, BSc and MCA students. In a short college break everybody reaches the canteen at the same time; TrayTime moves ordering out of the queue. Students and college staff pre-order breakfast, lunch or snacks for today or tomorrow, choose a 15-minute pickup slot, pay from a canteen wallet, online or at the counter, and collect a ready tray with a daily token number and a 4-digit pickup code.
The kitchen works from a live token board (New, Preparing, Ready) and a pickup counter that checks the code or scans the QR with a webcam, while the admin manages the menu, slots, students, kitchen staff, payments and sales reports.
How it works
- Student registers with college ID; the canteen admin approves the account
- Student browses today's menu with portions left, adds dishes to the tray and opens checkout
- Checkout shows 15-minute pickup slots with trays free; slot capacity, dish daily limit and wallet balance are locked in one transaction
- Payment by canteen wallet, Razorpay test checkout (or demo button) or pay at counter
- The order gets a daily token (T-001) and a 4-digit pickup code with QR
- Kitchen staff click Start and Mark Ready; the token turns green on the canteen TV board
- At the counter the code / QR is checked, cash is taken for counter orders and the tray is handed over; the student rates the order
Users
- Student / College Staff - menu, tray, checkout with slots, wallet, token, cancel with refund, receipts, ratings
- Kitchen Staff - token board, pickup counter with QR scan, prep list, sold out today, orders
- Admin (canteen manager) - dashboard, menu, categories, slots, students, kitchen staff, orders, payments, reports, notices, settings
Highlights
- 3 roles, 47 pages, 13 MySQL tables, 70 PHP files
- 15-minute pickup slots with tray capacity and dish daily limits (SELECT ... FOR UPDATE row locks)
- Daily token number, 4-digit pickup code and QR, webcam QR scan at the counter
- Canteen wallet with complete ledger, instant refund of cancelled orders
- Razorpay test mode payment + demo mode for offline college demo + pay at counter
- Live TV token board, kitchen prep list, 14-day sales chart and printable reports
- Prepared statements, password hashing, CSRF tokens, validations on every form
- Ready demo logins with realistic Indian sample data (411 orders)
What you get
- Complete PHP source code with SQL file and sample data
- Project report (53 pages) with 8 diagrams, abstract, explanation with viva Q&A and setup guide (PDF)
- Screenshots and README with a 10-minute demo script
Who can use this project
BCA, BSc Computer Science / IT, MCA and Diploma final year students, and Engineering 2nd / 3rd year micro project students.
Frequently asked questions
Does it run without internet? Yes. All libraries are local; use demo payment mode for the college demo.
Which software is needed? XAMPP (PHP 8 + MySQL) and a browser. The setup guide explains each step.
Is the Razorpay payment real? It uses Razorpay test mode, so no real money is charged.
Can three students divide the work? Yes. The report and README give a work split and three demo plans.