# anto-2818/car-showroom-php architecture

> Architecture diagram of the GitHub repository anto-2818/car-showroom-php, 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/anto-2818/car-showroom-php
- Repository: https://github.com/anto-2818/car-showroom-php

## Overview

Anto’s Car Showroom is a PHP luxury-car catalog: visitors enter the landing page, browse one of seven marque collections, and view model-detail pages. A separate contact workflow sends the landing-page form to a PHP endpoint, which uses configured MySQL access to save submissions. The catalog’s brand and model pages are largely standalone PHP pages. The README documents all seven collections and model pages, while sampled source gives direct cross-page evidence only for selected collections; uncertain catalog links are therefore marked dashed.

Main entry points: [`Showroom.php`](https://github.com/anto-2818/car-showroom-php/blob/main/Showroom.php) (Showroom home), [`submit_contact.php`](https://github.com/anto-2818/car-showroom-php/blob/main/submit_contact.php) (Contact submission), [`index.php`](https://github.com/anto-2818/car-showroom-php/blob/main/index.php) (Default redirect), [`audi/audi.php`](https://github.com/anto-2818/car-showroom-php/blob/main/audi/audi.php) (Audi collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Site entry"]
  node_redirect["Default redirect<br/>[index.php]"]
  node_landing["Showroom home<br/>[Showroom.php]"]
end

subgraph group_brands["Brand collections"]
  node_audi["Audi collection<br/>[audi.php]"]
  node_benz["Mercedes collection<br/>[benz.php]"]
  node_bmw["BMW collection<br/>[bmw.php]"]
  node_ferrari["Ferrari collection<br/>[ferrari.php]"]
  node_koenigsegg["Koenigsegg collection<br/>[Koenigsegg.php]"]
  node_lambo["Lamborghini collection<br/>[Lamborghini.php]"]
  node_pagani["Pagani collection<br/>[Pagani.php]"]
end

subgraph group_models["Model details"]
  node_audi_models["Audi model details"]
  node_benz_models["Mercedes model details"]
  node_bmw_models["BMW model details"]
  node_ferrari_models["Ferrari model details"]
  node_koenigsegg_models["Koenigsegg model details"]
  node_lambo_models["Lamborghini model details"]
  node_pagani_models["Pagani model details"]
end

subgraph group_contact["Contact storage"]
  node_contact_endpoint["Contact submission<br/>[submit_contact.php]"]
  node_config["Database config<br/>[config.php]"]
  node_mysql[("MySQL contacts")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_landing
node_visitor -->|"requests default"| node_redirect
node_redirect -->|"redirects"| node_landing
node_landing -.->|"browses"| node_audi
node_landing -.->|"browses"| node_benz
node_landing -.->|"browses"| node_bmw
node_landing -.->|"browses"| node_ferrari
node_landing -->|"browses"| node_koenigsegg
node_landing -->|"browses"| node_lambo
node_landing -->|"browses"| node_pagani
node_audi -.->|"links to models"| node_audi_models
node_benz -.->|"links to models"| node_benz_models
node_bmw -.->|"links to models"| node_bmw_models
node_ferrari -.->|"links to models"| node_ferrari_models
node_koenigsegg_models -->|"links back"| node_koenigsegg
node_lambo_models -->|"links back"| node_lambo
node_pagani_models -->|"links back"| node_pagani
node_visitor -->|"submits form"| node_contact_endpoint
node_contact_endpoint -->|"loads settings"| node_config
node_contact_endpoint -->|"stores submission"| node_mysql

click node_redirect "https://github.com/anto-2818/car-showroom-php/blob/main/index.php"
click node_landing "https://github.com/anto-2818/car-showroom-php/blob/main/Showroom.php"
click node_audi "https://github.com/anto-2818/car-showroom-php/blob/main/audi/audi.php"
click node_benz "https://github.com/anto-2818/car-showroom-php/blob/main/benz/benz.php"
click node_bmw "https://github.com/anto-2818/car-showroom-php/blob/main/bmw/bmw.php"
click node_ferrari "https://github.com/anto-2818/car-showroom-php/blob/main/ferrari/ferrari.php"
click node_koenigsegg "https://github.com/anto-2818/car-showroom-php/blob/main/koenigsegg/Koenigsegg.php"
click node_lambo "https://github.com/anto-2818/car-showroom-php/blob/main/lambo/Lamborghini.php"
click node_pagani "https://github.com/anto-2818/car-showroom-php/blob/main/pagani/Pagani.php"
click node_audi_models "https://github.com/anto-2818/car-showroom-php/blob/main/audi/audi-etron-gt-details.php"
click node_benz_models "https://github.com/anto-2818/car-showroom-php/blob/main/benz/mercedes-amg-g63-details.php"
click node_bmw_models "https://github.com/anto-2818/car-showroom-php/blob/main/bmw/bmw-x6m-details.php"
click node_ferrari_models "https://github.com/anto-2818/car-showroom-php/blob/main/ferrari/ferrari-purosangue-details.php"
click node_koenigsegg_models "https://github.com/anto-2818/car-showroom-php/blob/main/koenigsegg/koenigsegg-one1-details.php"
click node_lambo_models "https://github.com/anto-2818/car-showroom-php/blob/main/lambo/lamborghini-sian-details.php"
click node_pagani_models "https://github.com/anto-2818/car-showroom-php/blob/main/pagani/pagani-huayra-details.php"
click node_contact_endpoint "https://github.com/anto-2818/car-showroom-php/blob/main/submit_contact.php"
click node_config "https://github.com/anto-2818/car-showroom-php/blob/main/config.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_redirect,node_landing toneBlue
class node_audi,node_benz,node_bmw,node_ferrari,node_koenigsegg,node_lambo,node_pagani toneAmber
class node_audi_models,node_benz_models,node_bmw_models,node_ferrari_models,node_koenigsegg_models,node_lambo_models,node_pagani_models toneMint
class node_contact_endpoint,node_config,node_mysql toneRose
class node_visitor toneIndigo
```

## Components

### Site entry

- [Default redirect](https://github.com/anto-2818/car-showroom-php/blob/main/index.php): `index.php`
- [Showroom home](https://github.com/anto-2818/car-showroom-php/blob/main/Showroom.php): `Showroom.php`

### Brand collections

- [Audi collection](https://github.com/anto-2818/car-showroom-php/blob/main/audi/audi.php): `audi/audi.php`
- [Mercedes collection](https://github.com/anto-2818/car-showroom-php/blob/main/benz/benz.php): `benz/benz.php`
- [BMW collection](https://github.com/anto-2818/car-showroom-php/blob/main/bmw/bmw.php): `bmw/bmw.php`
- [Ferrari collection](https://github.com/anto-2818/car-showroom-php/blob/main/ferrari/ferrari.php): `ferrari/ferrari.php`
- [Koenigsegg collection](https://github.com/anto-2818/car-showroom-php/blob/main/koenigsegg/Koenigsegg.php): `koenigsegg/Koenigsegg.php`
- [Lamborghini collection](https://github.com/anto-2818/car-showroom-php/blob/main/lambo/Lamborghini.php): `lambo/Lamborghini.php`
- [Pagani collection](https://github.com/anto-2818/car-showroom-php/blob/main/pagani/Pagani.php): `pagani/Pagani.php`

### Model details

- [Audi model details](https://github.com/anto-2818/car-showroom-php/blob/main/audi/audi-etron-gt-details.php): `audi/audi-etron-gt-details.php`
- [Mercedes model details](https://github.com/anto-2818/car-showroom-php/blob/main/benz/mercedes-amg-g63-details.php): `benz/mercedes-amg-g63-details.php`
- [BMW model details](https://github.com/anto-2818/car-showroom-php/blob/main/bmw/bmw-x6m-details.php): `bmw/bmw-x6m-details.php`
- [Ferrari model details](https://github.com/anto-2818/car-showroom-php/blob/main/ferrari/ferrari-purosangue-details.php): `ferrari/ferrari-purosangue-details.php`
- [Koenigsegg model details](https://github.com/anto-2818/car-showroom-php/blob/main/koenigsegg/koenigsegg-one1-details.php): `koenigsegg/koenigsegg-one1-details.php`
- [Lamborghini model details](https://github.com/anto-2818/car-showroom-php/blob/main/lambo/lamborghini-sian-details.php): `lambo/lamborghini-sian-details.php`
- [Pagani model details](https://github.com/anto-2818/car-showroom-php/blob/main/pagani/pagani-huayra-details.php): `pagani/pagani-huayra-details.php`

### Contact storage

- [Contact submission](https://github.com/anto-2818/car-showroom-php/blob/main/submit_contact.php): `submit_contact.php`
- [Database config](https://github.com/anto-2818/car-showroom-php/blob/main/config.php): `config.php`
- **MySQL contacts**

### Other components

- **Visitor**

## Connections

- Visitor → Showroom home: opens
- Visitor → Default redirect: requests default
- Default redirect → Showroom home: redirects (evidence: `index.php`)
- Showroom home → Audi collection: browses
- Showroom home → Mercedes collection: browses
- Showroom home → BMW collection: browses
- Showroom home → Ferrari collection: browses
- Showroom home → Koenigsegg collection: browses (evidence: `Showroom.php`)
- Showroom home → Lamborghini collection: browses (evidence: `Showroom.php`)
- Showroom home → Pagani collection: browses (evidence: `Showroom.php`)
- Audi collection → Audi model details: links to models
- Mercedes collection → Mercedes model details: links to models
- BMW collection → BMW model details: links to models
- Ferrari collection → Ferrari model details: links to models
- Koenigsegg model details → Koenigsegg collection: links back (evidence: `koenigsegg/koenigsegg-one1-details.php`)
- Lamborghini model details → Lamborghini collection: links back (evidence: `lambo/lamborghini-sian-details.php`)
- Pagani model details → Pagani collection: links back (evidence: `pagani/pagani-huayra-details.php`)
- Visitor → Contact submission: submits form
- Contact submission → Database config: loads settings (evidence: `submit_contact.php`)
- Contact submission → MySQL contacts: stores submission
