# shivam3828y/taxi-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/shivam3828y/taxi-management-system
- Repository: https://github.com/shivam3828y/taxi-management-system

## Overview

This is a PHP taxi-management application with public taxi discovery, driver applications and requests, and an admin-operated verification, assignment, agreement, and payment workflow. Driver and admin pages combine request handling with database access; the graph treats MySQL as shared application state rather than inventing unshown service boundaries. The README is empty, and unsampled pages are represented only where the source index establishes their role or shared configuration; some public-page navigation and end-to-end transitions therefore remain unverified.

Main entry points: [`database.sql`](https://github.com/shivam3828y/taxi-management-system/blob/main/database.sql) (MySQL database), [`config.php`](https://github.com/shivam3828y/taxi-management-system/blob/main/config.php) (DB configuration), [`index2.php`](https://github.com/shivam3828y/taxi-management-system/blob/main/index2.php) (Taxi discovery), [`driver/register.php`](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/register.php) (Driver application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Public access"]
  node_public_site["Taxi discovery<br/>[index2.php]"]
end

subgraph group_driver["Driver services"]
  node_driver_registration["Driver application<br/>[register.php]"]
  node_driver_auth["Driver login<br/>[login.php]"]
  node_driver_profile["Driver profile<br/>[profile.php]"]
  node_driver_dashboard["Driver dashboard<br/>[dashboard.php]"]
  node_taxi_request["Taxi request<br/>[taxi_request.php]"]
  node_driver_taxi["Taxi details<br/>[taxi.php]"]
  node_driver_documents["Driver documents<br/>[documents.php]"]
  node_driver_payments["Driver payments<br/>[payments.php]"]
end

subgraph group_admin["Admin operations"]
  node_admin_auth["Admin login<br/>[login.php]"]
  node_admin_dashboard["Admin dashboard<br/>[dashboard.php]"]
  node_driver_admin["Driver management<br/>[drivers.php]"]
  node_taxi_admin["Taxi management<br/>[taxis.php]"]
  node_assignment_admin["Assignment management<br/>[assignments.php]"]
  node_agreement_admin["Agreement management<br/>[agreements.php]"]
  node_payment_admin["Payment oversight<br/>[payments.php]"]
  node_admin_documents["Admin documents<br/>[documents.php]"]
end

subgraph group_shared["Shared runtime"]
  node_database[("MySQL database<br/>[database.sql]")]
  node_runtime_config["DB configuration<br/>[config.php]"]
  node_security["Security helpers<br/>[security.php]"]
end

node_visitor(("Visitor / driver"))

node_visitor -->|"views taxis"| node_public_site
node_visitor -.->|"applies"| node_driver_registration
node_public_site -.->|"offers requests"| node_taxi_request
node_driver_registration -->|"stores application"| node_database
node_driver_auth -->|"checks credentials"| node_database
node_driver_profile -->|"reads profile"| node_database
node_driver_dashboard -->|"reads assignment and agreement"| node_database
node_taxi_request -->|"checks taxi and records request"| node_database
node_driver_taxi -->|"reads taxi"| node_database
node_driver_documents -.->|"accesses documents"| node_database
node_driver_payments -->|"updates and reads payments"| node_database
node_admin_auth -->|"checks credentials"| node_database
node_admin_dashboard -->|"reads summaries"| node_database
node_driver_admin -->|"manages drivers"| node_database
node_taxi_admin -->|"manages taxis"| node_database
node_assignment_admin -->|"manages requests and assignments"| node_database
node_agreement_admin -->|"creates agreements"| node_database
node_payment_admin -->|"filters payment records"| node_database
node_admin_documents -.->|"accesses documents"| node_database
node_runtime_config -->|"connects"| node_database
node_runtime_config -->|"loads helpers"| node_security

click node_public_site "https://github.com/shivam3828y/taxi-management-system/blob/main/index2.php"
click node_driver_registration "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/register.php"
click node_driver_auth "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/login.php"
click node_driver_profile "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/profile.php"
click node_driver_dashboard "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/dashboard.php"
click node_taxi_request "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/taxi_request.php"
click node_driver_taxi "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/taxi.php"
click node_driver_documents "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/documents.php"
click node_driver_payments "https://github.com/shivam3828y/taxi-management-system/blob/main/driver/payments.php"
click node_admin_auth "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/login.php"
click node_admin_dashboard "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/dashboard.php"
click node_driver_admin "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/drivers.php"
click node_taxi_admin "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/taxis.php"
click node_assignment_admin "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/assignments.php"
click node_agreement_admin "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/agreements.php"
click node_payment_admin "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/payments.php"
click node_admin_documents "https://github.com/shivam3828y/taxi-management-system/blob/main/admin/documents.php"
click node_database "https://github.com/shivam3828y/taxi-management-system/blob/main/database.sql"
click node_runtime_config "https://github.com/shivam3828y/taxi-management-system/blob/main/config.php"
click node_security "https://github.com/shivam3828y/taxi-management-system/blob/main/security.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_site toneBlue
class node_driver_registration,node_driver_auth,node_driver_profile,node_driver_dashboard,node_taxi_request,node_driver_taxi,node_driver_documents,node_driver_payments toneAmber
class node_admin_auth,node_admin_dashboard,node_driver_admin,node_taxi_admin,node_assignment_admin,node_agreement_admin,node_payment_admin,node_admin_documents toneMint
class node_database,node_runtime_config,node_security toneRose
class node_visitor toneIndigo
```

## Components

### Public access

- [Taxi discovery](https://github.com/shivam3828y/taxi-management-system/blob/main/index2.php): `index2.php`

### Driver services

- [Driver application](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/register.php): `driver/register.php`
- [Driver login](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/login.php): `driver/login.php`
- [Driver profile](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/profile.php): `driver/profile.php`
- [Driver dashboard](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/dashboard.php): `driver/dashboard.php`
- [Taxi request](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/taxi_request.php): `driver/taxi_request.php`
- [Taxi details](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/taxi.php): `driver/taxi.php`
- [Driver documents](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/documents.php): `driver/documents.php`
- [Driver payments](https://github.com/shivam3828y/taxi-management-system/blob/main/driver/payments.php): `driver/payments.php`

### Admin operations

- [Admin login](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/login.php): `admin/login.php`
- [Admin dashboard](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/dashboard.php): `admin/dashboard.php`
- [Driver management](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/drivers.php): `admin/drivers.php`
- [Taxi management](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/taxis.php): `admin/taxis.php`
- [Assignment management](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/assignments.php): `admin/assignments.php`
- [Agreement management](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/agreements.php): `admin/agreements.php`
- [Payment oversight](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/payments.php): `admin/payments.php`
- [Admin documents](https://github.com/shivam3828y/taxi-management-system/blob/main/admin/documents.php): `admin/documents.php`

### Shared runtime

- [MySQL database](https://github.com/shivam3828y/taxi-management-system/blob/main/database.sql): `database.sql`
- [DB configuration](https://github.com/shivam3828y/taxi-management-system/blob/main/config.php): `config.php`
- [Security helpers](https://github.com/shivam3828y/taxi-management-system/blob/main/security.php): `security.php`

### Other components

- **Visitor / driver**

## Connections

- Visitor / driver → Taxi discovery: views taxis (evidence: `index2.php`)
- Visitor / driver → Driver application: applies
- Taxi discovery → Taxi request: offers requests
- Driver application → MySQL database: stores application (evidence: `driver/register.php`)
- Driver login → MySQL database: checks credentials (evidence: `driver/login.php`)
- Driver profile → MySQL database: reads profile (evidence: `driver/profile.php`)
- Driver dashboard → MySQL database: reads assignment and agreement (evidence: `driver/dashboard.php`)
- Taxi request → MySQL database: checks taxi and records request (evidence: `driver/taxi_request.php`)
- Taxi details → MySQL database: reads taxi (evidence: `driver/taxi.php`)
- Driver documents → MySQL database: accesses documents
- Driver payments → MySQL database: updates and reads payments (evidence: `driver/payments.php`)
- Admin login → MySQL database: checks credentials (evidence: `admin/login.php`)
- Admin dashboard → MySQL database: reads summaries (evidence: `admin/dashboard.php`)
- Driver management → MySQL database: manages drivers (evidence: `admin/drivers.php`)
- Taxi management → MySQL database: manages taxis (evidence: `admin/taxis.php`)
- Assignment management → MySQL database: manages requests and assignments (evidence: `admin/assignments.php`)
- Agreement management → MySQL database: creates agreements (evidence: `admin/agreements.php`)
- Payment oversight → MySQL database: filters payment records (evidence: `admin/payments.php`)
- Admin documents → MySQL database: accesses documents
- DB configuration → MySQL database: connects (evidence: `config.php`)
- DB configuration → Security helpers: loads helpers (evidence: `config.php`)
