# andes2912/sekolahku architecture

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

- Interactive diagram: https://gitdiagram.com/andes2912/sekolahku
- Repository: https://github.com/andes2912/sekolahku

## Overview

Sekolahku is a Laravel school-management application combining a public school website with admissions (PPDB), library circulation, and SPP payment management. Public visitors browse school information; applicants submit student, parent, and document data; library staff manage books, members, and loans; and finance staff review and confirm payments. The graph highlights those domain stages and their storage models, plus backup and the shared user account layer. Relationships are limited to README claims and shown source references/calls; several unsampled module workflows are represented without guessed call paths.

Main entry points: [`app/Http/Controllers/HomeController.php`](https://github.com/andes2912/sekolahku/blob/1.x/app/Http/Controllers/HomeController.php) (Role dashboards), [`Modules/Perpustakaan/Http/Controllers/PeminjamController.php`](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Http/Controllers/PeminjamController.php) (Loan management), [`Modules/SPP/Http/Controllers/SPPController.php`](https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Http/Controllers/SPPController.php) (Payment administration), [`Modules/Perpustakaan/Entities/Borrowing.php`](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Borrowing.php) (Borrowings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_website["School website"]
  node_site_content["School content"]
  node_public_site["Public website"]
  node_website_data[("Website records")]
end

subgraph group_admissions["Admissions PPDB"]
  node_admissions_controller["Application workflow"]
  node_ppdb_entities[("Parent and file records")]
  node_student_data[("Student records<br/>[dataMurid.php]")]
end

subgraph group_library["Library circulation"]
  node_library_loans["Loan management"]
  node_books[("Books<br/>[Book.php]")]
  node_borrowings[("Borrowings<br/>[Borrowing.php]")]
  node_members[("Members<br/>[Member.php]")]
  node_catalog[("Library catalog")]
end

subgraph group_payments["SPP payments"]
  node_spp_controller["Payment administration<br/>[SPPController.php]"]
  node_payment_records[("Payment records<br/>[PaymentSpp.php]")]
  node_payment_details[("Payment details")]
  node_spp_settings[("Fee settings<br/>[SppSetting.php]")]
  node_student_payment["Student payment submission"]
end

subgraph group_platform["Shared platform"]
  node_accounts[("User accounts<br/>[User.php]")]
  node_dashboard["Role dashboards<br/>[HomeController.php]"]
  node_backup["Backup service<br/>[BackupService.php]"]
end

node_visitor(("Visitor"))
node_applicant(("Applicant"))
node_librarian(("Library staff"))
node_finance(("Finance staff"))

node_visitor -->|"browses"| node_public_site
node_public_site -->|"reads content"| node_website_data
node_site_content -.->|"manages content"| node_website_data
node_applicant -.->|"submits application"| node_admissions_controller
node_admissions_controller -->|"saves parent and files"| node_ppdb_entities
node_admissions_controller -->|"uses student records"| node_student_data
node_librarian -.->|"manages loans"| node_library_loans
node_library_loans -->|"reads and writes"| node_borrowings
node_library_loans -->|"updates stock"| node_books
node_library_loans -->|"loads members"| node_members
node_borrowings -->|"references book"| node_books
node_borrowings -->|"references member"| node_members
node_books -->|"relates catalog"| node_catalog
node_finance -.->|"administers fees"| node_spp_controller
node_spp_controller -->|"reads and updates"| node_payment_records
node_spp_controller -->|"confirms payment"| node_payment_details
node_spp_controller -->|"updates fee"| node_spp_settings
node_student_payment -->|"uses payment details"| node_payment_details
node_student_payment -->|"loads account"| node_accounts
node_dashboard -->|"checks role"| node_accounts
node_dashboard -->|"counts applicants"| node_student_data
node_dashboard -->|"counts stock"| node_books
node_dashboard -->|"counts loans"| node_borrowings
node_accounts -->|"relates applicant data"| node_ppdb_entities
node_accounts -->|"relates payments"| node_payment_records

click node_site_content "https://github.com/andes2912/sekolahku/tree/1.x/app/Http/Controllers/Backend/Website"
click node_public_site "https://github.com/andes2912/sekolahku/blob/1.x/app/Http/Controllers/Frontend/IndexController.php"
click node_website_data "https://github.com/andes2912/sekolahku/tree/1.x/app/Models"
click node_admissions_controller "https://github.com/andes2912/sekolahku/blob/1.x/Modules/PPDB/Http/Controllers/PendaftaranController.php"
click node_ppdb_entities "https://github.com/andes2912/sekolahku/tree/1.x/Modules/PPDB/Entities"
click node_student_data "https://github.com/andes2912/sekolahku/blob/1.x/app/Models/dataMurid.php"
click node_library_loans "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Http/Controllers/PeminjamController.php"
click node_books "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Book.php"
click node_borrowings "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Borrowing.php"
click node_members "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Member.php"
click node_catalog "https://github.com/andes2912/sekolahku/tree/1.x/Modules/Perpustakaan/Entities"
click node_spp_controller "https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Http/Controllers/SPPController.php"
click node_payment_records "https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/PaymentSpp.php"
click node_payment_details "https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/DetailPaymentSpp.php"
click node_spp_settings "https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/SppSetting.php"
click node_student_payment "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Murid/Http/Controllers/PembayaranController.php"
click node_accounts "https://github.com/andes2912/sekolahku/blob/1.x/app/Models/User.php"
click node_dashboard "https://github.com/andes2912/sekolahku/blob/1.x/app/Http/Controllers/HomeController.php"
click node_backup "https://github.com/andes2912/sekolahku/blob/1.x/Modules/Backup/Services/BackupService.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_site_content,node_public_site,node_website_data toneBlue
class node_admissions_controller,node_ppdb_entities,node_student_data toneAmber
class node_library_loans,node_books,node_borrowings,node_members,node_catalog toneMint
class node_spp_controller,node_payment_records,node_payment_details,node_spp_settings,node_student_payment toneRose
class node_accounts,node_dashboard,node_backup,node_visitor,node_applicant,node_librarian,node_finance toneIndigo
```

## Components

### School website

- [School content](https://github.com/andes2912/sekolahku/tree/1.x/app/Http/Controllers/Backend/Website): `app/Http/Controllers/Backend/Website`
- [Public website](https://github.com/andes2912/sekolahku/blob/1.x/app/Http/Controllers/Frontend/IndexController.php): `app/Http/Controllers/Frontend/IndexController.php`
- [Website records](https://github.com/andes2912/sekolahku/tree/1.x/app/Models): `app/Models`

### Admissions PPDB

- [Application workflow](https://github.com/andes2912/sekolahku/blob/1.x/Modules/PPDB/Http/Controllers/PendaftaranController.php): `Modules/PPDB/Http/Controllers/PendaftaranController.php`
- [Parent and file records](https://github.com/andes2912/sekolahku/tree/1.x/Modules/PPDB/Entities): `Modules/PPDB/Entities`
- [Student records](https://github.com/andes2912/sekolahku/blob/1.x/app/Models/dataMurid.php): `app/Models/dataMurid.php`

### Library circulation

- [Loan management](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Http/Controllers/PeminjamController.php): `Modules/Perpustakaan/Http/Controllers/PeminjamController.php`
- [Books](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Book.php): `Modules/Perpustakaan/Entities/Book.php`
- [Borrowings](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Borrowing.php): `Modules/Perpustakaan/Entities/Borrowing.php`
- [Members](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Perpustakaan/Entities/Member.php): `Modules/Perpustakaan/Entities/Member.php`
- [Library catalog](https://github.com/andes2912/sekolahku/tree/1.x/Modules/Perpustakaan/Entities): `Modules/Perpustakaan/Entities`

### SPP payments

- [Payment administration](https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Http/Controllers/SPPController.php): `Modules/SPP/Http/Controllers/SPPController.php`
- [Payment records](https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/PaymentSpp.php): `Modules/SPP/Entities/PaymentSpp.php`
- [Payment details](https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/DetailPaymentSpp.php): `Modules/SPP/Entities/DetailPaymentSpp.php`
- [Fee settings](https://github.com/andes2912/sekolahku/blob/1.x/Modules/SPP/Entities/SppSetting.php): `Modules/SPP/Entities/SppSetting.php`
- [Student payment submission](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Murid/Http/Controllers/PembayaranController.php): `Modules/Murid/Http/Controllers/PembayaranController.php`

### Shared platform

- [User accounts](https://github.com/andes2912/sekolahku/blob/1.x/app/Models/User.php): `app/Models/User.php`
- [Role dashboards](https://github.com/andes2912/sekolahku/blob/1.x/app/Http/Controllers/HomeController.php): `app/Http/Controllers/HomeController.php`
- [Backup service](https://github.com/andes2912/sekolahku/blob/1.x/Modules/Backup/Services/BackupService.php): `Modules/Backup/Services/BackupService.php`

### Other components

- **Visitor**
- **Applicant**
- **Library staff**
- **Finance staff**

## Connections

- Visitor → Public website: browses
- Public website → Website records: reads content (evidence: `app/Http/Controllers/Frontend/IndexController.php`)
- School content → Website records: manages content
- Applicant → Application workflow: submits application
- Application workflow → Parent and file records: saves parent and files (evidence: `Modules/PPDB/Http/Controllers/PendaftaranController.php`)
- Application workflow → Student records: uses student records (evidence: `Modules/PPDB/Http/Controllers/PendaftaranController.php`)
- Library staff → Loan management: manages loans
- Loan management → Borrowings: reads and writes (evidence: `Modules/Perpustakaan/Http/Controllers/PeminjamController.php`)
- Loan management → Books: updates stock (evidence: `Modules/Perpustakaan/Http/Controllers/PeminjamController.php`)
- Loan management → Members: loads members (evidence: `Modules/Perpustakaan/Http/Controllers/PeminjamController.php`)
- Borrowings → Books: references book (evidence: `Modules/Perpustakaan/Entities/Borrowing.php`)
- Borrowings → Members: references member (evidence: `Modules/Perpustakaan/Entities/Borrowing.php`)
- Books → Library catalog: relates catalog (evidence: `Modules/Perpustakaan/Entities/Book.php`)
- Finance staff → Payment administration: administers fees
- Payment administration → Payment records: reads and updates (evidence: `Modules/SPP/Http/Controllers/SPPController.php`)
- Payment administration → Payment details: confirms payment (evidence: `Modules/SPP/Http/Controllers/SPPController.php`)
- Payment administration → Fee settings: updates fee (evidence: `Modules/SPP/Http/Controllers/SPPController.php`)
- Student payment submission → Payment details: uses payment details (evidence: `Modules/Murid/Http/Controllers/PembayaranController.php`)
- Student payment submission → User accounts: loads account (evidence: `Modules/Murid/Http/Controllers/PembayaranController.php`)
- Role dashboards → User accounts: checks role (evidence: `app/Http/Controllers/HomeController.php`)
- Role dashboards → Student records: counts applicants (evidence: `app/Http/Controllers/HomeController.php`)
- Role dashboards → Books: counts stock (evidence: `app/Http/Controllers/HomeController.php`)
- Role dashboards → Borrowings: counts loans (evidence: `app/Http/Controllers/HomeController.php`)
- User accounts → Parent and file records: relates applicant data (evidence: `app/Models/User.php`)
- User accounts → Payment records: relates payments (evidence: `app/Models/User.php`)
