A premium, full-stack cafe management platform that transforms coffee shop operations. Built with PHP & MySQL, featuring real-time order processing, intelligent inventory management, staff performance analytics, and seamless payment integration. Perfect for modern cafes seeking digital transformation.
- Customer Portal - Order placement, profile management, order history
- Staff Panel - Order management, payment processing, sales reports, kitchen display
- Admin Dashboard - Complete system control, inventory management, staff management, analytics
- User Registration & Login - Secure authentication system
- Menu Browsing - Interactive menu with categories and search
- Order Placement - Real-time cart management with AJAX
- Order Tracking - Live status updates (pending โ preparing โ ready โ completed)
- Profile Management - Personal information and order history
- Responsive Design - Mobile-friendly interface
- Order Management - View, update, and process customer orders
- Payment Processing - Multiple payment methods (Cash, Card, Mobile Banking)
- Receipt Generation - Automatic receipt printing and customer copies
- Kitchen Display System - Real-time order tracking with audio notifications
- Personal Sales Reports - Individual performance analytics with charts
- Sales Analytics - Hourly sales data, payment method breakdown
- Export Functionality - CSV export for sales data
- Staff Management - Approve/reject staff registrations, manage permissions
- Product Management - Add, edit, delete menu items with categories
- Inventory Management - Real-time stock tracking with low-stock alerts
- Stock Movement Tracking - Complete audit trail for inventory changes
- Sales Dashboard - Comprehensive analytics with Chart.js visualizations
- Reports Generation - Detailed sales and inventory reports
- System Configuration - Global settings and thresholds
- Real-time Updates - AJAX-powered dynamic content updates
- Chart Analytics - Interactive charts for sales and inventory data
- Stock Alerts - Automated low-stock notifications
- Audit Trail - Complete logging of all system activities
- Print Integration - Receipt and report printing capabilities
- Modern UI/UX - Gradient backgrounds, animations, and responsive design
BrewMaster Cafe System/
โโโ ๐ admin/ # Administrator Panel
โ โโโ admin_login.php # Admin authentication
โ โโโ admin_logout.php # Admin logout handler
โ โโโ index.php # Admin dashboard
โ โโโ staff_approval.php # Staff registration approval
โ โโโ staff_management.php # Staff account management
โ โโโ product_management.php # Menu item management
โ โโโ inventory.php # Inventory management system
โ โโโ update_stock.php # Stock update processor
โ โโโ stock_history.php # Stock movement history
โ โโโ stock_report.php # Inventory reports
โ โโโ reports.php # Sales analytics dashboard
โ
โโโ ๐ staff/ # Staff Panel
โ โโโ staff_login.php # Staff authentication
โ โโโ staff_logout.php # Staff logout handler
โ โโโ staff_registration.php # Staff registration form
โ โโโ process_staff_registration.php # Registration processor
โ โโโ index.php # Staff dashboard
โ โโโ order_management.php # Order processing interface
โ โโโ payment_processing.php # Payment handling system
โ โโโ kitchen_display.php # Real-time kitchen orders
โ โโโ get_kitchen_orders.php # Kitchen data API
โ โโโ sales_report.php # Individual sales analytics
โ โโโ get_staff_chart_data.php # Sales chart data API
โ โโโ export_sales_csv.php # Sales data export
โ
โโโ ๐ customer/ # Customer Portal
โ โโโ customer_login.php # Customer authentication
โ โโโ customer_logout.php # Customer logout handler
โ โโโ customer_registration.php # Customer registration form
โ โโโ process_customer_registration.php # Registration processor
โ โโโ index.php # Customer dashboard
โ โโโ menu.php # Interactive menu browser
โ โโโ place_order.php # Order placement system
โ โโโ order_history.php # Personal order history
โ โโโ customer_profile.php # Profile management
โ โโโ get_menu_data.php # Menu data API
โ
โโโ ๐ global/ # Shared Resources
โ โโโ ๐ css/
โ โ โโโ style.css # Comprehensive styling
โ โโโ ๐ js/
โ โ โโโ main.js # Global JavaScript utilities
โ โโโ ๐ php/
โ โ โโโ db_connect.php # Database connection
โ โ โโโ cafe_database.sql # Complete database schema
โ โโโ ๐ images/ # Static assets
โ
โโโ index.html # Landing page
โโโ cafe_database.sql # Database setup script
โโโ inventory_setup.sql # Inventory system setup
โโโ README.md # Project documentation
| Technology | Purpose | Version |
|---|---|---|
| PHP | Backend Logic | 7.4+ |
| MySQL | Database | 5.7+ |
| JavaScript | Frontend Interactivity | ES6+ |
| CSS3 | Styling & Animations | Latest |
| AJAX | Asynchronous Operations | jQuery/Vanilla |
| Chart.js | Data Visualization | 3.x |
| XAMPP | Development Environment | Latest |
- XAMPP/WAMP/LAMP server environment
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Text editor/IDE (VS Code, Sublime Text, etc.)
git clone https://github.com/yourusername/brewmaster-cafe-system.git
cd brewmaster-cafe-system- Download and install XAMPP
- Start Apache and MySQL services
- Copy project folder to
C:\xampp\htdocs\(Windows) or/opt/lampp/htdocs/(Linux)
- Open phpMyAdmin (
http://localhost/phpmyadmin) - Create a new database named
cafe_management - Import the database schema:
Or use phpMyAdmin's import feature with
# Navigate to the project directory and import mysql -u root -p cafe_management < global/php/cafe_database.sql
cafe_database.sql
Update global/php/db_connect.php with your database credentials:
<?php
$servername = "localhost";
$username = "root"; // Your MySQL username
$password = ""; // Your MySQL password
$dbname = "cafe_management"; // Database name
?>- Main Landing Page:
http://localhost/brewmaster-cafe-system/ - Customer Portal:
http://localhost/brewmaster-cafe-system/customer/ - Staff Panel:
http://localhost/brewmaster-cafe-system/staff/ - Admin Dashboard:
http://localhost/brewmaster-cafe-system/admin/
- Username:
admin - Password:
admin123 - Email:
admin@cafe.com
- Email:
mike@cafe.com - Password:
password123 - Status: Approved
- Email:
john@example.com - Password:
password123
- โ Full system access and control
- โ Staff registration approval/rejection
- โ Product and menu management
- โ Inventory tracking and stock management
- โ Sales analytics and reporting
- โ System configuration and settings
- โ Order management and processing
- โ Payment processing (multiple methods)
- โ Kitchen display for order tracking
- โ Personal sales reports and analytics
- โ Customer service functions
- โ Cannot access admin functions
- โ Menu browsing and ordering
- โ Order history and tracking
- โ Profile management
- โ Real-time order status updates
- โ Cannot access staff/admin functions
- Host:
localhost(default) - Port:
3306(default MySQL port) - Database:
cafe_management
- Low Stock Threshold: 10 units (configurable)
- Session Timeout: 30 minutes
- Order Status Flow: Pending โ Confirmed โ Preparing โ Ready โ Completed
- Cash - Manual change calculation
- Card - Credit/Debit card processing
- bKash - Mobile banking (Bangladesh)
- Nagad - Mobile banking (Bangladesh)
- Rocket - Mobile banking (Bangladesh)
- ๐ Shopping Cart - Real-time cart management
- ๐ Search & Filter - Find products by category/name
- ๐ฑ Mobile Responsive - Works on all devices
- ๐ Order Notifications - Real-time status updates
- ๐ Order Queue - Organized order processing
- ๐ฐ Payment Processing - Multiple payment methods
- ๐งพ Receipt Generation - Automatic receipt printing
- ๐ Performance Tracking - Individual sales analytics
- ๐ฅ User Management - Complete user control
- ๐ฆ Inventory Control - Stock tracking with alerts
- ๐ Business Analytics - Comprehensive reporting
- ๐ง System Configuration - Customizable settings
- Modern Design - Gradient backgrounds and smooth animations
- Responsive Layout - Mobile-first design approach
- Interactive Elements - Hover effects and transitions
- Color-Coded Status - Visual status indicators
- Chart Integration - Beautiful data visualizations
- Print-Friendly - Optimized printing layouts
- Password Hashing - BCrypt encryption
- SQL Injection Prevention - Prepared statements
- Session Management - Secure session handling
- Role-Based Access - Proper permission controls
- Input Validation - Client and server-side validation
- Daily/Weekly/Monthly sales trends
- Payment method distribution
- Top-selling products analysis
- Staff performance metrics
- Current stock levels
- Low stock alerts
- Stock movement history
- Inventory valuation
- Create new PHP files in appropriate role directories
- Update navigation menus in respective dashboards
- Add corresponding CSS styles in
global/css/style.css - Include JavaScript functionality in
global/js/main.js
- Update schema in
global/php/cafe_database.sql - Create migration scripts for existing installations
- Update related PHP files for new fields/tables
- Modify
global/css/style.cssfor visual changes - Update color schemes in CSS custom properties
- Adjust responsive breakpoints as needed
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Email Integration: Email notifications not implemented
- Payment Gateway: Real payment processing not integrated
- Multi-location: Single location support only
- Backup System: Automated backups not implemented
- Email notification system
- Real payment gateway integration
- Multi-location support
- Mobile app development
- Advanced reporting dashboard
- Automated backup system
- Customer loyalty program
- Table reservation system
For support, feature requests, or bug reports:
- Create an Issue: GitHub Issues
- Email: your-email@example.com
- Documentation: Check the wiki for detailed guides
- Chart.js for beautiful data visualizations
- Unsplash for high-quality stock images
- Font Awesome for icon sets
- PHP Community for excellent documentation and resources
Made with โค๏ธ for the cafe industry
โญ Star this repository if you find it helpful! โญ