# kevinyoga99/edo-rent-car architecture

> Architecture diagram of the GitHub repository kevinyoga99/edo-rent-car, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kevinyoga99/edo-rent-car
- Repository: https://github.com/kevinyoga99/edo-rent-car

## Overview

This repository combines a CodeIgniter PHP framework with a vehicle-rental application serving customers, rental partners, and administrators. The apparent customer workflow is registration or sign-in, vehicle discovery, rental booking, transaction and payment, and invoice; partner and admin areas manage vehicles, payments, transactions, and reports. Application controller relationships are not shown in the sampled source, so those workflow links are dashed and unverified. Framework links cite the available bootstrap, routing, loader, and session evidence.

Main entry points: [`system/core/CodeIgniter.php`](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/CodeIgniter.php) (Runtime bootstrap), [`system/core/Router.php`](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Router.php) (Request routing), [`system/core/Loader.php`](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Loader.php) (Resource loader), [`system/libraries/Session/drivers/Session_database_driver.php`](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/drivers/Session_database_driver.php) (Database sessions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Rental application"]
  node_auth["Sign in<br/>[Auth.php]"]
  node_register["Registration<br/>[Register.php]"]
  node_browse["Vehicle browsing<br/>[Data_mobil.php]"]
  node_booking["Rental booking<br/>[Rental.php]"]
  node_customer_tx["Customer transactions<br/>[Transaksi.php]"]
  node_customer_views["Customer pages"]
  node_partner_fleet["Partner fleet<br/>[Data_mobil.php]"]
  node_partner_tx["Partner transactions<br/>[Transaksi.php]"]
  node_partner_payment["Partner payments<br/>[Payment.php]"]
  node_partner_reports["Partner reports<br/>[Laporan.php]"]
  node_admin_fleet["Admin fleet<br/>[Data_mobil.php]"]
  node_admin_records["Admin records<br/>[Data_customer.php]"]
  node_admin_tx["Admin transactions<br/>[Transaksi.php]"]
  node_admin_reports["Admin reports<br/>[Laporan.php]"]
  node_model["Rental data model<br/>[Rental_model.php]"]
end

subgraph group_framework["Framework runtime"]
  node_entry["Request bootstrap<br/>[index.php]"]
  node_runtime["Runtime bootstrap<br/>[CodeIgniter.php]"]
  node_config["Configuration<br/>[Config.php]"]
  node_router["Request routing<br/>[Router.php]"]
  node_routes["Route settings<br/>[routes.php]"]
  node_controller["Controller base<br/>[Controller.php]"]
  node_loader["Resource loader<br/>[Loader.php]"]
  node_model_base["Model base<br/>[Model.php]"]
  node_output["Response output<br/>[Output.php]"]
  node_input["Request input<br/>[Input.php]"]
  node_security["Input security<br/>[Security.php]"]
  node_hooks["Runtime hooks<br/>[Hooks.php]"]
  node_common["Common utilities<br/>[Common.php]"]
  node_driver["Driver delegation<br/>[Driver.php]"]
end

subgraph group_state["Framework state"]
  node_session["Session management<br/>[Session.php]"]
  node_session_interface["Session interface"]
  node_db_session["Database sessions"]
  node_session_db[("Session database")]
end

node_visitor(("User"))

node_visitor -.->|"signs in"| node_auth
node_visitor -.->|"registers"| node_register
node_visitor -.->|"browses"| node_browse
node_browse -.->|"selects vehicle"| node_booking
node_booking -.->|"submits rental"| node_customer_tx
node_customer_tx -.->|"shows transactions"| node_customer_views
node_visitor -.->|"manages fleet"| node_partner_fleet
node_visitor -.->|"manages transactions"| node_partner_tx
node_visitor -.->|"handles payments"| node_partner_payment
node_visitor -.->|"views reports"| node_partner_reports
node_visitor -.->|"administers fleet"| node_admin_fleet
node_visitor -.->|"administers records"| node_admin_records
node_visitor -.->|"administers transactions"| node_admin_tx
node_visitor -.->|"views reports"| node_admin_reports
node_entry -->|"starts runtime"| node_runtime
node_runtime -->|"loads utilities"| node_common
node_runtime -->|"loads configuration"| node_config
node_runtime -->|"loads hooks"| node_hooks
node_runtime -->|"loads router"| node_router
node_runtime -->|"loads output"| node_output
node_runtime -->|"loads input"| node_input
node_runtime -->|"loads security"| node_security
node_router -->|"uses config"| node_config
node_router -->|"loads routes"| node_routes
node_controller -->|"initializes loader"| node_loader
node_loader -->|"loads models"| node_model_base
node_loader -->|"loads drivers"| node_driver
node_session -->|"uses interface"| node_session_interface
node_db_session -->|"implements interface"| node_session_interface
node_db_session -->|"queries database"| node_session_db

click node_auth "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/Auth.php"
click node_register "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/Register.php"
click node_browse "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Data_mobil.php"
click node_booking "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Rental.php"
click node_customer_tx "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Transaksi.php"
click node_customer_views "https://github.com/kevinyoga99/edo-rent-car/tree/main/application/views/customer"
click node_partner_fleet "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Data_mobil.php"
click node_partner_tx "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Transaksi.php"
click node_partner_payment "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Payment.php"
click node_partner_reports "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Laporan.php"
click node_admin_fleet "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Data_mobil.php"
click node_admin_records "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Data_customer.php"
click node_admin_tx "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Transaksi.php"
click node_admin_reports "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Laporan.php"
click node_model "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/models/Rental_model.php"
click node_entry "https://github.com/kevinyoga99/edo-rent-car/blob/main/index.php"
click node_runtime "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/CodeIgniter.php"
click node_config "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Config.php"
click node_router "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Router.php"
click node_routes "https://github.com/kevinyoga99/edo-rent-car/blob/main/application/config/routes.php"
click node_controller "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Controller.php"
click node_loader "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Loader.php"
click node_model_base "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Model.php"
click node_output "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Output.php"
click node_input "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Input.php"
click node_security "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Security.php"
click node_hooks "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Hooks.php"
click node_common "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Common.php"
click node_session "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/Session.php"
click node_session_interface "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/SessionHandlerInterface.php"
click node_db_session "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/drivers/Session_database_driver.php"
click node_session_db "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/database/DB_query_builder.php"
click node_driver "https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Driver.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_auth,node_register,node_browse,node_booking,node_customer_tx,node_customer_views,node_partner_fleet,node_partner_tx,node_partner_payment,node_partner_reports,node_admin_fleet,node_admin_records,node_admin_tx,node_admin_reports,node_model,node_visitor toneBlue
class node_entry,node_runtime,node_config,node_router,node_routes,node_controller,node_loader,node_model_base,node_output,node_input,node_security,node_hooks,node_common,node_driver toneAmber
class node_session,node_session_interface,node_db_session,node_session_db toneMint
```

## Components

### Rental application

- [Sign in](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/Auth.php): `application/controllers/Auth.php`
- [Registration](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/Register.php): `application/controllers/Register.php`
- [Vehicle browsing](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Data_mobil.php): `application/controllers/customer/Data_mobil.php`
- [Rental booking](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Rental.php): `application/controllers/customer/Rental.php`
- [Customer transactions](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/customer/Transaksi.php): `application/controllers/customer/Transaksi.php`
- [Customer pages](https://github.com/kevinyoga99/edo-rent-car/tree/main/application/views/customer): `application/views/customer`
- [Partner fleet](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Data_mobil.php): `application/controllers/rental/Data_mobil.php`
- [Partner transactions](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Transaksi.php): `application/controllers/rental/Transaksi.php`
- [Partner payments](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Payment.php): `application/controllers/rental/Payment.php`
- [Partner reports](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/rental/Laporan.php): `application/controllers/rental/Laporan.php`
- [Admin fleet](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Data_mobil.php): `application/controllers/admin/Data_mobil.php`
- [Admin records](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Data_customer.php): `application/controllers/admin/Data_customer.php`
- [Admin transactions](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Transaksi.php): `application/controllers/admin/Transaksi.php`
- [Admin reports](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/controllers/admin/Laporan.php): `application/controllers/admin/Laporan.php`
- [Rental data model](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/models/Rental_model.php): `application/models/Rental_model.php`

### Framework runtime

- [Request bootstrap](https://github.com/kevinyoga99/edo-rent-car/blob/main/index.php): `index.php`
- [Runtime bootstrap](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/CodeIgniter.php): `system/core/CodeIgniter.php`
- [Configuration](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Config.php): `system/core/Config.php`
- [Request routing](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Router.php): `system/core/Router.php`
- [Route settings](https://github.com/kevinyoga99/edo-rent-car/blob/main/application/config/routes.php): `application/config/routes.php`
- [Controller base](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Controller.php): `system/core/Controller.php`
- [Resource loader](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Loader.php): `system/core/Loader.php`
- [Model base](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Model.php): `system/core/Model.php`
- [Response output](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Output.php): `system/core/Output.php`
- [Request input](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Input.php): `system/core/Input.php`
- [Input security](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Security.php): `system/core/Security.php`
- [Runtime hooks](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Hooks.php): `system/core/Hooks.php`
- [Common utilities](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/core/Common.php): `system/core/Common.php`
- [Driver delegation](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Driver.php): `system/libraries/Driver.php`

### Framework state

- [Session management](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/Session.php): `system/libraries/Session/Session.php`
- [Session interface](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/SessionHandlerInterface.php): `system/libraries/Session/SessionHandlerInterface.php`
- [Database sessions](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/libraries/Session/drivers/Session_database_driver.php): `system/libraries/Session/drivers/Session_database_driver.php`
- [Session database](https://github.com/kevinyoga99/edo-rent-car/blob/main/system/database/DB_query_builder.php): `system/database/DB_query_builder.php`

### Other components

- **User**

## Connections

- User → Sign in: signs in
- User → Registration: registers
- User → Vehicle browsing: browses
- Vehicle browsing → Rental booking: selects vehicle
- Rental booking → Customer transactions: submits rental
- Customer transactions → Customer pages: shows transactions
- User → Partner fleet: manages fleet
- User → Partner transactions: manages transactions
- User → Partner payments: handles payments
- User → Partner reports: views reports
- User → Admin fleet: administers fleet
- User → Admin records: administers records
- User → Admin transactions: administers transactions
- User → Admin reports: views reports
- Request bootstrap → Runtime bootstrap: starts runtime (evidence: `index.php`)
- Runtime bootstrap → Common utilities: loads utilities (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Configuration: loads configuration (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Runtime hooks: loads hooks (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Request routing: loads router (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Response output: loads output (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Request input: loads input (evidence: `system/core/CodeIgniter.php`)
- Runtime bootstrap → Input security: loads security (evidence: `system/core/CodeIgniter.php`)
- Request routing → Configuration: uses config (evidence: `system/core/Router.php`)
- Request routing → Route settings: loads routes (evidence: `system/core/Router.php`)
- Controller base → Resource loader: initializes loader (evidence: `system/core/Controller.php`)
- Resource loader → Model base: loads models (evidence: `system/core/Loader.php`)
- Resource loader → Driver delegation: loads drivers (evidence: `system/core/Loader.php`)
- Session management → Session interface: uses interface (evidence: `system/libraries/Session/Session.php`)
- Database sessions → Session interface: implements interface (evidence: `system/libraries/Session/drivers/Session_database_driver.php`)
- Database sessions → Session database: queries database (evidence: `system/libraries/Session/drivers/Session_database_driver.php`)
