# dimas1984/pemogramanweb2026 architecture

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

- Interactive diagram: https://gitdiagram.com/dimas1984/pemogramanweb2026
- Repository: https://github.com/dimas1984/pemogramanweb2026

## Overview

This repository is a sequence of incremental PHP mini-library projects; the later jobsheets culminate in SIMPUS-Mini, with PostgreSQL-backed catalog and member management, authentication, basic security helpers, and borrowing history/returns. The main user workflow is navigating the library pages, managing records, and— in the later stage—signing in and handling loans. The graph focuses on jobsheet-13 as the fullest application. Several subsystem links are documented or visible in the dashboard/index; loan and CRUD implementation details were not sampled, so their internal connections are left unasserted.

Main entry points: [`kode-praktikum/jobsheet-13/includes/koneksi.php`](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/koneksi.php) (PostgreSQL), [`kode-praktikum/jobsheet-13/anggota/list.php`](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/list.php) (Member Records), [`kode-praktikum/jobsheet-13/index.php`](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/index.php) (Dashboard), [`kode-praktikum/jobsheet-13/includes/header.php`](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/header.php) (Page Chrome)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog Management"]
  node_members["Member Records<br/>[list.php]"]
  node_member_forms["Member Forms<br/>[tambah.php]"]
  node_member_actions["Member Mutations<br/>[proses_tambah.php]"]
  node_member_edit["Member Editing<br/>[proses_edit.php]"]
  node_member_delete["Member Deletion<br/>[hapus.php]"]
  node_books["Book Records<br/>[list.php]"]
  node_book_forms["Book Forms<br/>[tambah.php]"]
  node_book_actions["Book Mutations<br/>[proses_tambah.php]"]
  node_book_edit["Book Editing<br/>[proses_edit.php]"]
  node_book_delete["Book Deletion<br/>[hapus.php]"]
end

subgraph group_access["Access and Security"]
  node_auth_pages["Login and Register<br/>[proses_login.php]"]
  node_auth_guard["Session Guard<br/>[auth.php]"]
  node_csrf["CSRF Protection<br/>[csrf.php]"]
  node_helpers["Security Helpers<br/>[helpers.php]"]
end

subgraph group_circulation["Loan Circulation"]
  node_loan_entry["Loan Creation<br/>[proses_tambah.php]"]
  node_loan_history["Loan History<br/>[riwayat.php]"]
  node_loan_return["Loan Return<br/>[proses_kembali.php]"]
end

subgraph group_shared["Shared Application"]
  node_dashboard["Dashboard<br/>[index.php]"]
  node_chrome["Page Chrome<br/>[header.php]"]
  node_database[("PostgreSQL<br/>[koneksi.php]")]
end

node_visitor(("Library User"))

node_visitor -->|"opens"| node_dashboard
node_dashboard -->|"includes"| node_chrome
node_dashboard -->|"queries counts"| node_database
node_members -->|"reads records"| node_database
node_members -->|"includes"| node_chrome
node_members -->|"checks session"| node_auth_guard
node_books -->|"reads records"| node_database
node_books -->|"includes"| node_chrome
node_member_actions -.->|"persists changes"| node_database
node_member_edit -.->|"persists changes"| node_database
node_member_delete -.->|"persists changes"| node_database
node_book_actions -.->|"persists changes"| node_database
node_book_edit -.->|"persists changes"| node_database
node_book_delete -.->|"persists changes"| node_database
node_visitor -.->|"authenticates"| node_auth_pages
node_auth_guard -->|"redirects unauthenticated"| node_auth_pages
node_loan_entry -.->|"records loan"| node_database
node_loan_history -.->|"reads loans"| node_database
node_loan_return -.->|"updates loan"| node_database

click node_dashboard "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/index.php"
click node_chrome "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/header.php"
click node_database "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/koneksi.php"
click node_members "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/list.php"
click node_member_forms "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/tambah.php"
click node_member_actions "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/proses_tambah.php"
click node_member_edit "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/proses_edit.php"
click node_member_delete "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/hapus.php"
click node_books "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/list.php"
click node_book_forms "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/tambah.php"
click node_book_actions "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/proses_tambah.php"
click node_book_edit "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/proses_edit.php"
click node_book_delete "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/hapus.php"
click node_auth_pages "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/auth/proses_login.php"
click node_auth_guard "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/auth.php"
click node_csrf "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/csrf.php"
click node_helpers "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/helpers.php"
click node_loan_entry "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/proses_tambah.php"
click node_loan_history "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/riwayat.php"
click node_loan_return "https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/proses_kembali.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_members,node_member_forms,node_member_actions,node_member_edit,node_member_delete,node_books,node_book_forms,node_book_actions,node_book_edit,node_book_delete,node_visitor toneBlue
class node_auth_pages,node_auth_guard,node_csrf,node_helpers toneAmber
class node_loan_entry,node_loan_history,node_loan_return toneMint
class node_dashboard,node_chrome,node_database toneRose
```

## Components

### Catalog Management

- [Member Records](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/list.php): `kode-praktikum/jobsheet-13/anggota/list.php`
- [Member Forms](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/tambah.php): `kode-praktikum/jobsheet-13/anggota/tambah.php`
- [Member Mutations](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/proses_tambah.php): `kode-praktikum/jobsheet-13/anggota/proses_tambah.php`
- [Member Editing](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/proses_edit.php): `kode-praktikum/jobsheet-13/anggota/proses_edit.php`
- [Member Deletion](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/anggota/hapus.php): `kode-praktikum/jobsheet-13/anggota/hapus.php`
- [Book Records](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/list.php): `kode-praktikum/jobsheet-13/buku/list.php`
- [Book Forms](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/tambah.php): `kode-praktikum/jobsheet-13/buku/tambah.php`
- [Book Mutations](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/proses_tambah.php): `kode-praktikum/jobsheet-13/buku/proses_tambah.php`
- [Book Editing](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/proses_edit.php): `kode-praktikum/jobsheet-13/buku/proses_edit.php`
- [Book Deletion](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/buku/hapus.php): `kode-praktikum/jobsheet-13/buku/hapus.php`

### Access and Security

- [Login and Register](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/auth/proses_login.php): `kode-praktikum/jobsheet-13/auth/proses_login.php`
- [Session Guard](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/auth.php): `kode-praktikum/jobsheet-13/includes/auth.php`
- [CSRF Protection](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/csrf.php): `kode-praktikum/jobsheet-13/includes/csrf.php`
- [Security Helpers](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/helpers.php): `kode-praktikum/jobsheet-13/includes/helpers.php`

### Loan Circulation

- [Loan Creation](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/proses_tambah.php): `kode-praktikum/jobsheet-13/peminjaman/proses_tambah.php`
- [Loan History](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/riwayat.php): `kode-praktikum/jobsheet-13/peminjaman/riwayat.php`
- [Loan Return](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/peminjaman/proses_kembali.php): `kode-praktikum/jobsheet-13/peminjaman/proses_kembali.php`

### Shared Application

- [Dashboard](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/index.php): `kode-praktikum/jobsheet-13/index.php`
- [Page Chrome](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/header.php): `kode-praktikum/jobsheet-13/includes/header.php`
- [PostgreSQL](https://github.com/dimas1984/pemogramanweb2026/blob/main/kode-praktikum/jobsheet-13/includes/koneksi.php): `kode-praktikum/jobsheet-13/includes/koneksi.php`

### Other components

- **Library User**

## Connections

- Library User → Dashboard: opens (evidence: `kode-praktikum/jobsheet-13/index.php`)
- Dashboard → Page Chrome: includes (evidence: `kode-praktikum/jobsheet-13/index.php`)
- Dashboard → PostgreSQL: queries counts (evidence: `kode-praktikum/jobsheet-13/index.php`)
- Member Records → PostgreSQL: reads records (evidence: `kode-praktikum/jobsheet-13/anggota/list.php`)
- Member Records → Page Chrome: includes (evidence: `kode-praktikum/jobsheet-13/anggota/list.php`)
- Member Records → Session Guard: checks session (evidence: `kode-praktikum/jobsheet-13/anggota/list.php`)
- Book Records → PostgreSQL: reads records (evidence: `kode-praktikum/jobsheet-13/buku/list.php`)
- Book Records → Page Chrome: includes (evidence: `kode-praktikum/jobsheet-13/buku/list.php`)
- Member Mutations → PostgreSQL: persists changes
- Member Editing → PostgreSQL: persists changes
- Member Deletion → PostgreSQL: persists changes
- Book Mutations → PostgreSQL: persists changes
- Book Editing → PostgreSQL: persists changes
- Book Deletion → PostgreSQL: persists changes
- Library User → Login and Register: authenticates
- Session Guard → Login and Register: redirects unauthenticated (evidence: `kode-praktikum/jobsheet-13/includes/auth.php`)
- Loan Creation → PostgreSQL: records loan
- Loan History → PostgreSQL: reads loans
- Loan Return → PostgreSQL: updates loan
