# sheilpian/sistem_rt architecture

> Architecture diagram of the GitHub repository sheilpian/sistem_rt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sheilpian/sistem_rt
- Repository: https://github.com/sheilpian/sistem_rt

## Overview

This is a PHP web application for managing RT 31 neighborhood administration. Residents or administrators sign in and use the dashboard to reach resident records, financial records, complaints, and other administrative services; staff can also process correspondence and population events. The tree and sampled pages document role-based permissions, exports, and dedicated modules for mutations, inventory, and donations. Source excerpts are partial and the README is empty, so links among unsampled modules and their storage operations are not asserted.

Main entry points: [`index.php`](https://github.com/sheilpian/sistem_rt/blob/main/index.php) (Dashboard), [`warga.php`](https://github.com/sheilpian/sistem_rt/blob/main/warga.php) (Resident records), [`keuangan.php`](https://github.com/sheilpian/sistem_rt/blob/main/keuangan.php) (Finance and dues), [`config.php`](https://github.com/sheilpian/sistem_rt/blob/main/config.php) (Application config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboard"]
  node_login["Sign in<br/>[login.php]"]
  node_dashboard["Dashboard<br/>[index.php]"]
  node_users["User management<br/>[users.php]"]
end

subgraph group_people["Resident administration"]
  node_residents["Resident records<br/>[warga.php]"]
  node_resident_edit["Resident updates<br/>[edit_warga.php]"]
  node_population["Births and deaths<br/>[kelahiran.php]"]
  node_moves["Resident moves<br/>[pindah_masuk.php]"]
end

subgraph group_services["Community services"]
  node_letters["Letter service<br/>[surat.php]"]
  node_letter_request["Submit request<br/>[tambah_surat.php]"]
  node_letter_export["Letter exports<br/>[export_sktm.php]"]
  node_complaints["Complaints<br/>[aduan.php]"]
end

subgraph group_finance["Finance and assets"]
  node_finance["Finance and dues<br/>[keuangan.php]"]
  node_dues_helper["Dues calculations<br/>[iuran_helper.php]"]
  node_finance_exports["Financial exports"]
  node_inventory["Inventory<br/>[inventaris.php]"]
  node_donations["Donations<br/>[sumbangan.php]"]
end

subgraph group_support["Shared capabilities"]
  node_auth["Role permissions<br/>[auth_helper.php]"]
  node_config["Application config<br/>[config.php]"]
  node_profile["Profile<br/>[profil.php]"]
  node_help["Help<br/>[bantuan.php]"]
end

node_visitor(("User"))
node_database[("MySQL database")]

node_visitor -->|"signs in"| node_login
node_login -->|"opens after login"| node_dashboard
node_dashboard -->|"opens"| node_residents
node_dashboard -->|"opens"| node_complaints
node_dashboard -->|"opens"| node_finance
node_dashboard -->|"links to"| node_population
node_dashboard -->|"links to"| node_letters
node_dashboard -->|"links to"| node_moves
node_dashboard -->|"links to"| node_inventory
node_dashboard -->|"links to"| node_donations
node_dashboard -->|"links to"| node_users
node_dashboard -->|"links to"| node_profile
node_dashboard -->|"links to"| node_help
node_residents -->|"offers editing"| node_resident_edit
node_residents -->|"calculates dues"| node_dues_helper
node_finance -->|"calculates dues"| node_dues_helper
node_letters -->|"offers requests"| node_letter_request
node_letters -->|"offers export"| node_letter_export
node_finance -->|"offers export"| node_finance_exports
node_login -->|"includes"| node_config
node_dashboard -->|"includes"| node_config
node_residents -->|"includes"| node_config
node_finance -->|"includes"| node_config
node_dashboard -->|"checks roles"| node_auth
node_residents -->|"checks permissions"| node_auth
node_users -->|"uses permissions"| node_auth

click node_login "https://github.com/sheilpian/sistem_rt/blob/main/login.php"
click node_dashboard "https://github.com/sheilpian/sistem_rt/blob/main/index.php"
click node_auth "https://github.com/sheilpian/sistem_rt/blob/main/auth_helper.php"
click node_config "https://github.com/sheilpian/sistem_rt/blob/main/config.php"
click node_users "https://github.com/sheilpian/sistem_rt/blob/main/users.php"
click node_residents "https://github.com/sheilpian/sistem_rt/blob/main/warga.php"
click node_resident_edit "https://github.com/sheilpian/sistem_rt/blob/main/edit_warga.php"
click node_population "https://github.com/sheilpian/sistem_rt/blob/main/kelahiran.php"
click node_moves "https://github.com/sheilpian/sistem_rt/blob/main/pindah_masuk.php"
click node_letters "https://github.com/sheilpian/sistem_rt/blob/main/surat.php"
click node_letter_request "https://github.com/sheilpian/sistem_rt/blob/main/tambah_surat.php"
click node_letter_export "https://github.com/sheilpian/sistem_rt/blob/main/export_sktm.php"
click node_complaints "https://github.com/sheilpian/sistem_rt/blob/main/aduan.php"
click node_finance "https://github.com/sheilpian/sistem_rt/blob/main/keuangan.php"
click node_dues_helper "https://github.com/sheilpian/sistem_rt/blob/main/iuran_helper.php"
click node_finance_exports "https://github.com/sheilpian/sistem_rt/blob/main/export_keuangan.php"
click node_inventory "https://github.com/sheilpian/sistem_rt/blob/main/inventaris.php"
click node_donations "https://github.com/sheilpian/sistem_rt/blob/main/sumbangan.php"
click node_profile "https://github.com/sheilpian/sistem_rt/blob/main/profil.php"
click node_help "https://github.com/sheilpian/sistem_rt/blob/main/bantuan.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_dashboard,node_users,node_visitor toneBlue
class node_residents,node_resident_edit,node_population,node_moves,node_database toneAmber
class node_letters,node_letter_request,node_letter_export,node_complaints toneMint
class node_finance,node_dues_helper,node_finance_exports,node_inventory,node_donations toneRose
class node_auth,node_config,node_profile,node_help toneIndigo
```

## Components

### Access and dashboard

- [Sign in](https://github.com/sheilpian/sistem_rt/blob/main/login.php): `login.php`
- [Dashboard](https://github.com/sheilpian/sistem_rt/blob/main/index.php): `index.php`
- [User management](https://github.com/sheilpian/sistem_rt/blob/main/users.php): `users.php`

### Resident administration

- [Resident records](https://github.com/sheilpian/sistem_rt/blob/main/warga.php): `warga.php`
- [Resident updates](https://github.com/sheilpian/sistem_rt/blob/main/edit_warga.php): `edit_warga.php`
- [Births and deaths](https://github.com/sheilpian/sistem_rt/blob/main/kelahiran.php): `kelahiran.php`
- [Resident moves](https://github.com/sheilpian/sistem_rt/blob/main/pindah_masuk.php): `pindah_masuk.php`

### Community services

- [Letter service](https://github.com/sheilpian/sistem_rt/blob/main/surat.php): `surat.php`
- [Submit request](https://github.com/sheilpian/sistem_rt/blob/main/tambah_surat.php): `tambah_surat.php`
- [Letter exports](https://github.com/sheilpian/sistem_rt/blob/main/export_sktm.php): `export_sktm.php`
- [Complaints](https://github.com/sheilpian/sistem_rt/blob/main/aduan.php): `aduan.php`

### Finance and assets

- [Finance and dues](https://github.com/sheilpian/sistem_rt/blob/main/keuangan.php): `keuangan.php`
- [Dues calculations](https://github.com/sheilpian/sistem_rt/blob/main/iuran_helper.php): `iuran_helper.php`
- [Financial exports](https://github.com/sheilpian/sistem_rt/blob/main/export_keuangan.php): `export_keuangan.php`
- [Inventory](https://github.com/sheilpian/sistem_rt/blob/main/inventaris.php): `inventaris.php`
- [Donations](https://github.com/sheilpian/sistem_rt/blob/main/sumbangan.php): `sumbangan.php`

### Shared capabilities

- [Role permissions](https://github.com/sheilpian/sistem_rt/blob/main/auth_helper.php): `auth_helper.php`
- [Application config](https://github.com/sheilpian/sistem_rt/blob/main/config.php): `config.php`
- [Profile](https://github.com/sheilpian/sistem_rt/blob/main/profil.php): `profil.php`
- [Help](https://github.com/sheilpian/sistem_rt/blob/main/bantuan.php): `bantuan.php`

### Other components

- **User**
- **MySQL database**

## Connections

- User → Sign in: signs in
- Sign in → Dashboard: opens after login
- Dashboard → Resident records: opens
- Dashboard → Complaints: opens
- Dashboard → Finance and dues: opens
- Dashboard → Births and deaths: links to
- Dashboard → Letter service: links to
- Dashboard → Resident moves: links to
- Dashboard → Inventory: links to
- Dashboard → Donations: links to
- Dashboard → User management: links to
- Dashboard → Profile: links to
- Dashboard → Help: links to
- Resident records → Resident updates: offers editing
- Resident records → Dues calculations: calculates dues
- Finance and dues → Dues calculations: calculates dues
- Letter service → Submit request: offers requests
- Letter service → Letter exports: offers export
- Finance and dues → Financial exports: offers export
- Sign in → Application config: includes
- Dashboard → Application config: includes
- Resident records → Application config: includes
- Finance and dues → Application config: includes
- Dashboard → Role permissions: checks roles
- Resident records → Role permissions: checks permissions
- User management → Role permissions: uses permissions
