A PHP-based multi-vendor delivery service platform that can be deployed on any shared hosting with PHP and MySQL support.
- Multi-Role System: Admin, Vendor, Delivery Personnel, and Customer dashboards
- Vendor Management: Vendors can manage their shops, products, and orders
- Order Management: Complete order lifecycle from placement to delivery
- Real-time Updates: Track orders and delivery status
- Product Catalog: Browse products by category and vendor
- User Authentication: Secure login system with role-based access
- Responsive Design: Works on desktop and mobile devices
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Apache/Nginx web server
- mod_rewrite enabled (for Apache)
Upload all files from the php-deliverease
folder to your web hosting directory (e.g., public_html
or www
).
- Log into your hosting control panel (cPanel, Plesk, etc.)
- Create a new MySQL database named
deliverease
- Create a database user and grant all privileges to the database
- Note down the database credentials
- Open phpMyAdmin from your hosting control panel
- Select the
deliverease
database - Click on "Import" tab
- Choose the
database.sql
file and import it
Edit the config.php
file and update the database credentials:
define('DB_HOST', 'localhost');
define('DB_NAME', 'deliverease');
define('DB_USER', 'your_database_user');
define('DB_PASS', 'your_database_password');
In config.php
, update the site URL to match your domain:
define('SITE_URL', 'https://yourdomain.com');
- Navigate to
https://yourdomain.com/setup.php
- Click "Initialize Demo Data" to add sample users, vendors, and products
- Delete or rename
setup.php
after completion for security
Ensure the following directories exist and are writable (755 permissions):
uploads/
uploads/products/
uploads/profiles/
After running the setup, you can login with these credentials:
- Username:
admin
- Password:
admin123
- Username:
vendor1
orvendor2
- Password:
vendor123
- Username:
delivery1
ordelivery2
- Password:
delivery123
- Username:
customer1
orcustomer2
- Password:
customer123
php-deliverease/
├── admin/ # Admin dashboard files
├── vendor/ # Vendor dashboard files
├── delivery/ # Delivery personnel dashboard files
├── customer/ # Customer dashboard files
├── includes/ # Shared PHP includes (header, footer)
├── api/ # API endpoints for AJAX calls
├── uploads/ # User uploaded files
├── config.php # Main configuration file
├── database.sql # Database schema
├── index.php # Homepage
├── login.php # Login page
├── register.php # Registration page
├── dashboard.php # Dashboard router
└── setup.php # Setup script
- Change Default Passwords: After setup, change all demo account passwords
- Remove Setup File: Delete or rename
setup.php
after initial setup - Secure Uploads: Configure
.htaccess
to prevent PHP execution in uploads folder - SSL Certificate: Use HTTPS for production deployment
- Regular Backups: Set up automated database and file backups
Edit the CSS variables in the style sections of each file:
:root {
--primary-color: #FF6B6B;
--secondary-color: #4ECDC4;
--dark-color: #2C3E50;
--light-bg: #F8F9FA;
}
To add payment integration:
- Create payment processing files in the
api/
directory - Update order placement logic to include payment verification
- Add payment status tracking in the orders table
To add email notifications:
- Configure PHP mail settings in
config.php
- Add email sending functions for order updates
- Create email templates for different notifications
- Verify database credentials in
config.php
- Ensure database user has all privileges
- Check if database server is running
- Ensure
.htaccess
file is present (for Apache) - Check if mod_rewrite is enabled
- Verify file permissions (644 for files, 755 for directories)
- Ensure PHP sessions are enabled
- Check session save path permissions
- Clear browser cookies and cache
For issues or questions:
- Check the troubleshooting section
- Review server error logs
- Ensure all requirements are met
- Contact your hosting provider for server-specific issues
This project is provided as-is for educational and commercial use.
Note: This is a basic implementation. For production use, consider adding:
- Input validation and sanitization
- CSRF protection
- Rate limiting
- Advanced error handling
- Automated testing
- Performance optimization
- Scalability improvements