Online FIR Portal Using PHP and MySQL
The Online FIR Portal is an advanced web-based crime and case management system designed to digitize the FIR filing and police case-handling process. The platform allows citizens to submit FIR complaints online and follow the progress of their cases without depending on repeated physical visits to a police station. At the administrative level, Headquarters can monitor the overall system, manage police stations and In-charge accounts, while station In-charges assign cases to police officers for investigation.
The system follows a structured role-based workflow from FIR submission to investigation and case closure. It combines a responsive interface, database-driven dashboards, case timelines, notifications, reports, document handling, and access controls to create a professional project suitable for an advanced academic or real-world demonstration environment.
Table of Contents
Complete Advance AI Topics: Click Here
Real Time Projects on YouTube:- DecodeIT
Project Overview
| Project Attribute | Details |
|---|---|
| Project Name | Online FIR Portal |
| Language | PHP |
| Database | MySQL |
| Application Type | Web Application |
| Architecture | Role-Based Crime Management System |
Objectives
The main objective is to provide a centralized platform for submitting and managing FIR records digitally. Citizens can register, file multiple FIRs, and track updates. HQ can monitor cases across stations, station In-charges can manage officers and assignments, and police officers can work on cases assigned to them.
Key Features
- Secure user registration and login
- Role-based dashboards
- Online FIR submission
- Automatic FIR references
- Supporting document uploads
- Case status management
- Search and filtering
- Pagination
- Case timeline and history
- Notifications
- Investigation updates
- Charge-sheet management
- Activity and audit logs
- Reports and CSV export
- Database-driven dashboard analytics
User Roles
Complainant
The complainant can create an account, log in securely, submit FIRs, enter incident information, provide suspect and witness details, upload supporting documents where applicable, and view previously submitted cases. The dashboard displays current case statuses and timeline information.
HQ
The HQ role provides centralized management. HQ users can view FIR records across the system, manage police stations, create and control Police In-charge accounts, monitor station workloads, review statistics, and export relevant reports.
Police In-Charge
The Police In-charge manages cases belonging to the assigned police station. This role can manage police officers, create officer accounts, review incoming FIRs, assign cases, monitor investigation progress, and view station-level statistics.
Police Officer
Police officers can access cases assigned to them. They can review FIR information, add investigation updates and remarks, change appropriate case statuses, upload relevant documents, submit charge-sheet information, and complete the assigned case workflow.
Project Modules
The system is divided into connected modules for authentication, FIR management, police station management, officer management, case assignment, investigation, charge-sheet handling, notifications, and activity tracking. This separation keeps the application organized and makes each role’s responsibilities easier to manage.
FIR Management
The FIR module captures important complaint information such as incident date, time, location, crime type, complaint subject, detailed description, suspect information, witness information, and supporting documents. Each record can be followed through its status and history.
Case Workflow
The case process follows a controlled sequence. A complainant submits an FIR, the record becomes available for administrative review, the appropriate police station handles the case, and the Police In-charge assigns it to an officer. The assigned officer performs investigation-related updates. When the investigation is completed, charge-sheet information can be recorded and the case can be closed according to the implemented workflow.
Case Timeline and History
Every important case action can be represented through a timeline. The history records events such as FIR submission, review, assignment, investigation updates, status changes, and closure. This provides authorized users with a clear view of how a case has progressed.
Reports and Analytics
The administrative dashboards include database-driven statistics and visual charts. Information can be organized by FIR status, monthly activity, police station workload, and user roles. The reporting tools also provide structured information that can be exported for further review.
Notification System
The portal includes notifications for important events such as FIR submission, assignment, case updates, and other relevant workflow changes. The notification area helps users identify important actions and case-related updates from their dashboard.
Dashboard and UI Design
The application uses a custom professional interface instead of depending on a default framework administration screen. Each role receives a dashboard designed around its responsibilities. The HQ dashboard emphasizes overall statistics and charts, the In-charge dashboard focuses on station workload and assignments, the Police dashboard emphasizes active investigations, and the complainant dashboard focuses on submitted FIRs and status tracking.
Database Information
The MySQL database is organized around related entities such as users, roles, police stations, FIRs, assignments, case history, notifications, activity logs, and charge-sheet records. Primary and foreign-key relationships connect records according to the actual workflow. This structure helps avoid unnecessary duplication and makes it possible to retrieve station, officer, complainant, and case information consistently.
Security
Security is an important part of the implementation. Passwords are stored using secure hashing, database operations use prepared statements, sessions are handled carefully, and role-based authorization prevents users from opening management pages outside their permissions. Forms use validation and CSRF protection, while uploaded files are subject to controlled handling.
How to Download
The complete package is available so you can run, study, and submit it with confidence. It includes:
- Full Source Code
- Project Report
- Synopsis
- PPT Presentation
Screenshot












Technology Stack
The project is developed with PHP for server-side functionality and MySQL for structured data storage. HTML and CSS are used for the interface, while JavaScript provides interactive browser-side behavior and dashboard presentation. The application is designed to run in a standard XAMPP environment.
Installation and Setup
- Install XAMPP and start Apache and MySQL.
- Copy the project folder into the
htdocsdirectory. - Open phpMyAdmin and create or import the supplied
crime_portal.sqldatabase. - Update the database configuration if your MySQL credentials differ from the project defaults.
- Open the project through localhost in a browser.
- Log in using the configured role accounts and access the appropriate dashboard.
Usage
A complainant can open the FIR submission page and provide the required incident information. Once the record is created, authorized administrative users can review and manage the case. HQ handles centralized station-level administration, while the station In-charge assigns suitable cases to available officers. Officers then use their investigation workspace to update progress and complete the case workflow.
Error Handling and Access Control
The application provides validation messages when required information is missing or invalid. Every protected page checks the active session and the user’s role before allowing access. Case-level access is also restricted according to the user’s responsibility, helping prevent a complainant, officer, or station user from viewing records outside the intended workflow.
Project Benefits
The Online FIR Portal reduces dependence on manual case registers and provides a centralized way to organize complaint information. It gives complainants better visibility into their submitted cases and provides authorized police personnel with a structured method for assignment and investigation tracking. For management users, database-driven reports and charts make operational information easier to understand.
Frequently Asked Questions
Can a complainant submit more than one FIR?
Yes. The system supports multiple FIR records for a registered complainant.
Can HQ monitor cases from different stations?
Yes. HQ has centralized visibility over the records available to its role and can manage station-level administration.
Can an In-charge assign cases to officers?
Yes. The Police In-charge module includes officer management and case assignment functionality.
Can officers see every FIR?
No. Police officers are restricted to cases assigned to them through the role-based workflow.
Does the portal provide case history?
Yes. Relevant case events and status changes are maintained as history so authorized users can follow the case lifecycle.
Future Scope
- Additional reporting formats and advanced report customization
- Configurable case workflow rules
- Advanced document verification
- Additional notification channels
- More detailed audit and compliance controls
- Integration with officially approved government services where appropriate
Conclusion
The Online FIR Portal provides a structured digital workflow for managing FIR submissions and police case operations. By combining complainant services with HQ monitoring, station-level management, officer assignments, investigation updates, case history, notifications, analytics, and charge-sheet handling, the project moves beyond a basic CRUD application. Its role-based architecture and database-driven dashboards make it suitable as an advanced PHP and MySQL project while keeping the original purpose of online FIR and crime case management intact.
Keywords:
online fir portal in phponline fir portal using php and mysqlonline fir filing system in phponline fir management systemonline FIR registration systemFIR management system in PHPcrime management system in PHPcrime record management systemcrime record management system using PHP and MySQLpolice case management systempolice management system in PHPonline complaint management systemFIR tracking systemonline crime reporting systempolice station management systempolice case tracking systemPHP MySQL projectadvanced PHP projectPHP final year projectPHP college projectMySQL project for studentsFIR portal source codeonline FIR projectFIR management projectcase management system using PHPpolice officer management systemcharge-sheet management systemrole based FIR management systemFIR dashboard with chartsFIR case tracking portaldigital FIR management system,FIR management system Online FIR Portal Using PHP and MySQL