BPAMIS is a web-based case and complaints management system for barangays. It streamlines the handling of disputes and complaints, provides separate portals for residents and barangay officials, and includes hearing schedules, notifications, and a PHP-based chatbot assistant for case-related queries.
-
Resident portal
- Online submission of complaints and blotter reports
- View status and history of filed cases
- Notifications for updates and hearings
-
Barangay official portal (Captain, Lupon, Secretary, etc.)
- Dashboard for active, pending, and closed cases
- Assignment of mediators/lupon members
- Scheduling and rescheduling of hearings
- Case status updates and report generation
- Feedback collection from residents
-
External user portal
- Limited-access view for external complainants
- Notifications and case summaries
-
Chatbot assistant
- Case inquiry and basic guidance on KP (Katarungang Pambarangay) process
- Knowledge-base–driven responses using local PHP scripts
-
Notifications and reporting
- In-app notifications per user role
- Case reports and printable KP forms
- Basic export to PDF for selected reports
- Backend: PHP (procedural/custom MVC-style structure)
- Frontend: HTML, CSS, JavaScript (with Tailwind JS utilities in some views)
- Database: MySQL / MariaDB
- Dependencies:
- PHPMailer for email sending
- Composer (for PHP dependency management)
Key folders (not exhaustive):
- bpamis_website/ – Main public-facing pages (home, about, login, register, services, etc.)
- chatbot/ – Chatbot endpoints, knowledge base, and logging
- controllers/ – PHP scripts for login/registration, case handling, notifications, etc.
- ExternalMenu/ – Pages for external complainants and notifications
- OfficialMenu/ – Portals and tools for barangay captain, lupon, and other officials
- ResidentMenu/ – Resident dashboard and related pages
- SecMenu/ – Secretary-specific views and tools
- includes/ – Shared navigation bars, headers, and layout templates
- phpmailer/ – PHPMailer library
- uploads/ – Stored uploaded files (e.g., attachments, evidence)
- PHP 7.4+
- MySQL / MariaDB
- A local server stack (e.g., XAMPP, WAMP, Laragon)
- Composer installed globally (for PHP dependencies)
-
Clone the repository
git clone https://github.com/<your-username>/<your-repo>.git cd <your-repo>
-
Install PHP dependencies
composer install
-
Create the database
- Create a new MySQL database (e.g.,
bpamis_db). - Import the SQL schema (if provided) into this database via phpMyAdmin or the MySQL client.
- Create a new MySQL database (e.g.,
-
Configure database connection
- Open the configuration file (for example in the
chatbot/and/orcontrollers/directory, such asconfig.phpor similar). - Update the database host, name, username, and password to match your local environment.
- Open the configuration file (for example in the
-
Configure mail settings (optional but recommended)
- In the PHPMailer configuration file(s), set your SMTP host, port, username, and password for email notifications.
-
Run the project
- Place the project folder inside your local server’s web root (e.g.,
htdocsfor XAMPP). - Start Apache and MySQL from your local server control panel.
- Access the system in your browser, for example:
http://localhost/<your-repo>/bpamis_website/bpamis.php
- Place the project folder inside your local server’s web root (e.g.,
- Register a new resident account or log in as an existing user.
- Submit complaints or blotter reports from the resident portal.
- Log in as a barangay official to assign cases, schedule hearings, and update statuses.
- Use the chatbot module to query case information and basic KP procedures.
- Generate and print reports or forms from the official menu.
Add screenshots or GIFs here to better showcase the system UI.
- Dashboard view
- Case management page
- Chatbot interface
Contributions, suggestions, and bug reports are welcome:
- Fork the repository
- Create a new branch for your feature/fix
- Commit your changes with clear messages
- Open a pull request describing what you’ve changed
Specify your license here (e.g., MIT, GPL, or “All rights reserved”).