# yash31ecosmob/pipeline architecture

> Architecture diagram of the GitHub repository yash31ecosmob/pipeline, 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/yash31ecosmob/pipeline
- Repository: https://github.com/yash31ecosmob/pipeline

## Overview

CarAtYourService is a small PHP car-rental booking site. Visitors browse the home page and tariffs, register or sign in, submit a rental request, then view their bookings or log out. The README documents manual MySQL setup through dbcreation.php and table.php. The graph shows the sampled PHP handlers and database actions; it does not assume that the separate request.php endpoint is used by the rental form, which submits directly to rent.php.

Main entry points: [`rent.php`](https://github.com/yash31ecosmob/pipeline/blob/master/rent.php) (Rental request form), [`checksession.php`](https://github.com/yash31ecosmob/pipeline/blob/master/checksession.php) (Session guard), [`session.php`](https://github.com/yash31ecosmob/pipeline/blob/master/session.php) (Credential check), [`login.php`](https://github.com/yash31ecosmob/pipeline/blob/master/login.php) (Login form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public pages"]
  node_home["Home page<br/>[carrental.php]"]
  node_tariffs["Tariff page<br/>[tarrif.php]"]
end

subgraph group_identity["Accounts and sessions"]
  node_login["Login form<br/>[login.php]"]
  node_registration["Registration<br/>[registration.php]"]
  node_auth["Credential check<br/>[session.php]"]
  node_sessionstate["PHP session<br/>[session.php]"]
  node_guard["Session guard<br/>[checksession.php]"]
  node_logout["Logout<br/>[logout.php]"]
end

subgraph group_rental["Rental workflow"]
  node_rentalform["Rental request form<br/>[rent.php]"]
  node_bookingview["Booking view<br/>[myorder.php]"]
  node_requestendpoint["Request endpoint<br/>[request.php]"]
end

subgraph group_storage["Persistence"]
  node_database_setup["Database creation<br/>[dbcreation.php]"]
  node_table_setup["User table setup<br/>[table.php]"]
  node_mysql[("MySQL database")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"links to"| node_login
node_home -->|"links to"| node_registration
node_home -->|"links to"| node_tariffs
node_login -->|"submits to"| node_auth
node_auth -->|"checks credentials"| node_mysql
node_auth -->|"sets username"| node_sessionstate
node_auth -->|"redirects to"| node_rentalform
node_auth -->|"redirects to"| node_login
node_registration -->|"includes"| node_database_setup
node_registration -->|"inserts account"| node_mysql
node_rentalform -->|"includes"| node_guard
node_rentalform -->|"includes"| node_database_setup
node_guard -->|"reads username"| node_sessionstate
node_guard -->|"checks account"| node_mysql
node_guard -->|"redirects to"| node_login
node_rentalform -->|"inserts request"| node_mysql
node_rentalform -->|"links to"| node_bookingview
node_bookingview -->|"includes"| node_guard
node_bookingview -->|"reads bookings"| node_mysql
node_requestendpoint -->|"includes"| node_guard
node_requestendpoint -->|"inserts request"| node_mysql
node_requestendpoint -->|"redirects to"| node_rentalform
node_logout -->|"redirects to"| node_login
node_database_setup -->|"creates database"| node_mysql
node_table_setup -->|"includes"| node_database_setup
node_table_setup -->|"creates account table"| node_mysql

click node_home "https://github.com/yash31ecosmob/pipeline/blob/master/carrental.php"
click node_tariffs "https://github.com/yash31ecosmob/pipeline/blob/master/tarrif.php"
click node_login "https://github.com/yash31ecosmob/pipeline/blob/master/login.php"
click node_registration "https://github.com/yash31ecosmob/pipeline/blob/master/registration.php"
click node_auth "https://github.com/yash31ecosmob/pipeline/blob/master/session.php"
click node_sessionstate "https://github.com/yash31ecosmob/pipeline/blob/master/session.php"
click node_guard "https://github.com/yash31ecosmob/pipeline/blob/master/checksession.php"
click node_logout "https://github.com/yash31ecosmob/pipeline/blob/master/logout.php"
click node_rentalform "https://github.com/yash31ecosmob/pipeline/blob/master/rent.php"
click node_bookingview "https://github.com/yash31ecosmob/pipeline/blob/master/myorder.php"
click node_requestendpoint "https://github.com/yash31ecosmob/pipeline/blob/master/request.php"
click node_database_setup "https://github.com/yash31ecosmob/pipeline/blob/master/dbcreation.php"
click node_table_setup "https://github.com/yash31ecosmob/pipeline/blob/master/table.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_home,node_tariffs toneBlue
class node_login,node_registration,node_auth,node_sessionstate,node_guard,node_logout toneAmber
class node_rentalform,node_bookingview,node_requestendpoint toneMint
class node_database_setup,node_table_setup,node_mysql toneRose
class node_visitor toneIndigo
```

## Components

### Public pages

- [Home page](https://github.com/yash31ecosmob/pipeline/blob/master/carrental.php): `carrental.php`
- [Tariff page](https://github.com/yash31ecosmob/pipeline/blob/master/tarrif.php): `tarrif.php`

### Accounts and sessions

- [Login form](https://github.com/yash31ecosmob/pipeline/blob/master/login.php): `login.php`
- [Registration](https://github.com/yash31ecosmob/pipeline/blob/master/registration.php): `registration.php`
- [Credential check](https://github.com/yash31ecosmob/pipeline/blob/master/session.php): `session.php`
- [PHP session](https://github.com/yash31ecosmob/pipeline/blob/master/session.php): `session.php`
- [Session guard](https://github.com/yash31ecosmob/pipeline/blob/master/checksession.php): `checksession.php`
- [Logout](https://github.com/yash31ecosmob/pipeline/blob/master/logout.php): `logout.php`

### Rental workflow

- [Rental request form](https://github.com/yash31ecosmob/pipeline/blob/master/rent.php): `rent.php`
- [Booking view](https://github.com/yash31ecosmob/pipeline/blob/master/myorder.php): `myorder.php`
- [Request endpoint](https://github.com/yash31ecosmob/pipeline/blob/master/request.php): `request.php`

### Persistence

- [Database creation](https://github.com/yash31ecosmob/pipeline/blob/master/dbcreation.php): `dbcreation.php`
- [User table setup](https://github.com/yash31ecosmob/pipeline/blob/master/table.php): `table.php`
- **MySQL database**

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Home page → Login form: links to (evidence: `carrental.php`)
- Home page → Registration: links to (evidence: `carrental.php`)
- Home page → Tariff page: links to (evidence: `carrental.php`)
- Login form → Credential check: submits to (evidence: `login.php`)
- Credential check → MySQL database: checks credentials (evidence: `session.php`)
- Credential check → PHP session: sets username (evidence: `session.php`)
- Credential check → Rental request form: redirects to (evidence: `session.php`)
- Credential check → Login form: redirects to (evidence: `session.php`)
- Registration → Database creation: includes (evidence: `registration.php`)
- Registration → MySQL database: inserts account (evidence: `registration.php`)
- Rental request form → Session guard: includes (evidence: `rent.php`)
- Rental request form → Database creation: includes (evidence: `rent.php`)
- Session guard → PHP session: reads username (evidence: `checksession.php`)
- Session guard → MySQL database: checks account (evidence: `checksession.php`)
- Session guard → Login form: redirects to (evidence: `checksession.php`)
- Rental request form → MySQL database: inserts request (evidence: `rent.php`)
- Rental request form → Booking view: links to (evidence: `rent.php`)
- Booking view → Session guard: includes (evidence: `myorder.php`)
- Booking view → MySQL database: reads bookings (evidence: `myorder.php`)
- Request endpoint → Session guard: includes (evidence: `request.php`)
- Request endpoint → MySQL database: inserts request (evidence: `request.php`)
- Request endpoint → Rental request form: redirects to (evidence: `request.php`)
- Logout → Login form: redirects to (evidence: `logout.php`)
- Database creation → MySQL database: creates database (evidence: `dbcreation.php`)
- User table setup → Database creation: includes (evidence: `table.php`)
- User table setup → MySQL database: creates account table (evidence: `table.php`)
