A comprehensive waste collection management platform with smart scheduling, SMS notifications, and real-time tracking.
- ๐ Easy waste collection request submission
- ๐ Location-based service
- ๐ฑ SMS notifications for request status
- ๐ Real-time request tracking
- ๐ Customer support integration
- ๐ Task dashboard with assigned collections
- ๐บ๏ธ Route optimization and mapping
- ๐ฑ SMS communication with customers
- โ Status update capabilities
- ๐ Performance tracking
- ๐ Comprehensive dashboard with metrics
- โ Request approval/rejection workflow
- ๐ฅ Driver assignment management
- ๐ง Smart scheduling algorithm
- ๐ฑ Bulk SMS broadcasting
- ๐ Analytics and reporting
- Geographic Clustering: Groups requests within 2km radius
- Route Optimization: Nearest neighbor algorithm for fuel efficiency
- Time Slot Management: Morning (8-12), Afternoon (12-4), Evening (4-8)
- Fuel Savings: Estimates 30-40% reduction in operational costs
Powered by Twilio for reliable messaging:
- โ Request lifecycle notifications
- โ Driver assignment alerts
- โ Collection reminders
- โ Admin broadcasting
- โ 99.95% delivery guarantee
- Frontend: HTML5, CSS3, JavaScript (Vanilla)
- Backend: PHP 7.4+ with MySQLi/PDO
- Database: MySQL 5.7+
- SMS: Twilio API
- Server: Apache (XAMPP)
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Apache web server
- Twilio account (for SMS features)
-
Clone the repository
git clone https://github.com/yourusername/drms.git cd drms -
Database Setup
# Create database mysql -u root -p -e "CREATE DATABASE drms2;" # Import schema mysql -u root -p drms2 < database.sql mysql -u root -p drms2 < sms_tables.sql
-
Environment Configuration
# Copy environment template cp .env.example .env # Edit .env with your credentials nano .env
-
Configure Environment Variables
# Database DB_HOST=localhost DB_USER=root DB_PASS=your_password DB_NAME=drms2 # Twilio (Get from https://console.twilio.com) TWILIO_ACCOUNT_SID=your_account_sid TWILIO_AUTH_TOKEN=your_auth_token TWILIO_PHONE_NUMBER=your_twilio_number
-
Web Server Setup
# For XAMPP # Copy project to: C:\xampp\htdocs\drms # Access via: http://localhost/drms
After running the database setup:
- Admin:
admin/admin123 - Driver:
driver1/driver123 - Resident:
testuser/test123
- Login as Admin: Access admin dashboard
- Test SMS: Visit
/src/frontend/assets/test_sms.html - Create Request: Login as resident and submit a request
- Manage Workflow: Approve requests and assign drivers
- Configure Twilio credentials in
.env - Verify phone numbers in Twilio Console (trial accounts)
- Test SMS integration: Visit the SMS test page
- Demo workflow: Submit โ Approve โ Assign โ Complete
This project implements comprehensive security measures:
- โ Environment Variables: No hardcoded credentials
- โ SQL Injection Prevention: Prepared statements
- โ Password Hashing: Bcrypt encryption
- โ Session Management: Secure session handling
- โ Role-Based Access: Admin/Driver/Resident permissions
See SECURITY.md for detailed security information.
- users: Authentication and role management
- requests1: Waste collection requests
- drivers: Driver profiles and capacity
- assignments: Request-driver relationships
- schedules: Optimized route data
- notifications: System notifications
- sms_logs: SMS delivery tracking
- Real-time metrics and analytics
- Request management workflow
- Driver assignment interface
- Smart scheduling controls
- Task dashboard with assignments
- Route optimization display
- Customer communication tools
- Simple request submission
- Status tracking
- Notification history
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Check the
/docsfolder - Issues: Open a GitHub issue
- Email: [ndindajohn22@gmail.com]
- Twilio: For reliable SMS API
- PHP Community: For excellent documentation
- Open Source: For making development accessible
Built with โค๏ธ for efficient waste management
- ๐ฑ Mobile applications (iOS/Android)
- ๐บ๏ธ Real-time GPS tracking
- ๐ค AI-powered route optimization
- ๐ Multi-location support
- โ๏ธ Cloud deployment options
- ๐ Advanced analytics dashboard