A comprehensive system for managing traffic violations, sending notifications to vehicle owners, and facilitating online payments.
This project implements an automated traffic challan system that:
- Captures traffic violations using cameras (red light violations)
- Identifies vehicle number plates using image processing
- Issues challans to vehicle owners
- Sends email notifications to owners
- Provides an online payment portal for challan payments
- Maintains a database of violations and payments
- Includes an admin dashboard for system management
- Captures images when a vehicle violates traffic rules
- Uses image processing to extract vehicle number plate
- Sends the captured data to the server API
-
Public Pages:
- Home page with challan lookup functionality
- Challan details view page
- Payment processing page using Google Pay QR
- Payment receipt generation
-
Admin Panel:
- Dashboard with statistics
- Violation management
- Vehicle owner management
- Reports and analytics
- Vehicle owners information
- Traffic violations records
- Payment records
- Admin users
- PHP 7.4 or higher
- MySQL database
- Web server (Apache/Nginx)
- Hostinger hosting account or similar
-
Upload files to your hosting account:
- Upload all files in the
Website
folder and the.env
file to your hosting root directory
- Upload all files in the
-
Configure environment variables:
- Edit the
.env
file with your configuration settings:# Database Configuration DB_HOST=localhost DB_NAME=traffic_challan DB_USER=your_database_username DB_PASS=your_database_password # Email API Configuration EMAIL_API_URL=https://thegroup11.com/api/sendmail EMAIL_API_KEY=your_actual_api_key # Site Configuration SITE_NAME=Traffic Challan Payment System SITE_URL=https://yourwebsite.com # Camera API Security CAMERA_API_KEY=your_camera_api_key # UPI Payment Details UPI_ID=your-upi-id@bank # Admin Default Credentials ADMIN_USERNAME=admin ADMIN_PASSWORD=your_secure_password
- Edit the
-
Set up the database:
- Visit
https://your-domain.com/setup_database.php
in your browser - This script will create all the necessary tables
- You can add sample data by clicking the "Add Sample Data" button
- Visit
-
Security considerations:
- Make sure the
.env
file is not accessible from the web - Add
.env
to your.gitignore
file to avoid committing sensitive information - The system is already set up to use these environment variables
- Make sure the
- Receive email notification when a violation is detected
- Click on the payment link in the email or visit the website
- Enter challan ID or vehicle number to view challan details
- Process payment using Google Pay by scanning the QR code
- Enter transaction ID to confirm payment
- Download receipt for future reference
- Log in to the admin panel using default credentials:
- Username: admin
- Password: admin123
- View dashboard with violation statistics
- Manage violations and vehicle owner information
- Generate reports and track payment status
To add a new violation from your camera system, make an API call:
POST https://your-domain.com/api/add_violation.php
Parameters:
- api_key: your_camera_api_key
- numberplate: MH01AB1234
- location: Junction Name
- violation_type: Red Light Violation
- image: [Base64 encoded image data]
- Change the default admin password immediately after installation
- Use HTTPS for all web traffic
- Use strong API keys for camera integration
- Keep database credentials secure
- Protect your
.env
file:- Make sure it's included in
.gitignore
to avoid accidentally committing it - Set proper file permissions (600) so only the web server can read it
- Ensure it's stored outside of publicly accessible directories when possible
- Make sure it's included in
- Regularly update your passwords and API keys
© 2025 Traffic Challan Payment System. All rights reserved.
1601147b3e2dd3f02f35d1b61d139087be1a4b31