# rachmantor/phap architecture

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

- Interactive diagram: https://gitdiagram.com/rachmantor/phap
- Repository: https://github.com/rachmantor/phap

## Overview

This repository identifies itself as a lightweight PHP framework, but the available runtime is only a bootstrap skeleton. The public entry file loads the application bootstrap, which creates a `kernel\main` instance. That class currently has an empty `run()` method, and the entry file does not call it, so no request handling or user-visible result is evidenced. The graph shows only those explicit relationships; it does not infer framework capabilities from the product description.

Main entry points: [`bootstrap/app.php`](https://github.com/rachmantor/phap/blob/main/bootstrap/app.php) (App bootstrap), [`public/index.php`](https://github.com/rachmantor/phap/blob/main/public/index.php) (Public entry), [`kernel/main.php`](https://github.com/rachmantor/phap/blob/main/kernel/main.php) (Main kernel)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_public_entry["Public entry<br/>[index.php]"]
node_app_bootstrap["App bootstrap<br/>[app.php]"]
node_main_kernel["Main kernel<br/>[main.php]"]

node_public_entry -->|"loads"| node_app_bootstrap
node_app_bootstrap -->|"creates"| node_main_kernel

click node_public_entry "https://github.com/rachmantor/phap/blob/main/public/index.php"
click node_app_bootstrap "https://github.com/rachmantor/phap/blob/main/bootstrap/app.php"
click node_main_kernel "https://github.com/rachmantor/phap/blob/main/kernel/main.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_public_entry,node_app_bootstrap,node_main_kernel toneTeal
```

## Components

### Other components

- [Public entry](https://github.com/rachmantor/phap/blob/main/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/rachmantor/phap/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Main kernel](https://github.com/rachmantor/phap/blob/main/kernel/main.php): `kernel/main.php`

## Connections

- Public entry → App bootstrap: loads (evidence: `public/index.php`)
- App bootstrap → Main kernel: creates (evidence: `bootstrap/app.php`)
