# shadowcipher911/northtravelpk architecture

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

- Interactive diagram: https://gitdiagram.com/shadowcipher911/northtravelpk
- Repository: https://github.com/shadowcipher911/northtravelpk

## Overview

NorthTravelPK is a PHP tourism-company website for showcasing Pakistan tour packages and supporting customer bookings and account features. The visible visitor flow is to browse the home page or package list, open a package detail, and submit a booking; signed-in users can view their bookings. The repository also includes gallery, reviews, contact, profile, registration, and password-recovery pages. The README is only a brief project description, and some source excerpts are incomplete, so links are limited to relationships directly visible in the supplied excerpts.

Main entry points: [`tour-single.php`](https://github.com/shadowcipher911/northtravelpk/blob/main/tour-single.php) (Package details), [`tourlist.php`](https://github.com/shadowcipher911/northtravelpk/blob/main/tourlist.php) (Package list), [`user/my-booking.php`](https://github.com/shadowcipher911/northtravelpk/blob/main/user/my-booking.php) (My bookings), [`user/clientreviews.php`](https://github.com/shadowcipher911/northtravelpk/blob/main/user/clientreviews.php) (Signed-in reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Tour discovery"]
  node_home["Home page<br/>[index.php]"]
  node_package_list["Package list<br/>[tourlist.php]"]
  node_package_detail["Package details<br/>[tour-single.php]"]
  node_user_home["Signed-in home<br/>[index.php]"]
  node_user_package_detail["Signed-in package details<br/>[tour-single.php]"]
  node_gallery["Package gallery<br/>[gallery.php]"]
  node_user_gallery["Signed-in gallery<br/>[gallery.php]"]
end

subgraph group_booking["Bookings and accounts"]
  node_booking_list["My bookings<br/>[my-booking.php]"]
  node_login["Login<br/>[login.php]"]
  node_registration["Registration<br/>[reg.php]"]
  node_profile["Profile<br/>[profile.php]"]
  node_logout["Logout<br/>[logout.php]"]
  node_forgot_password["Password recovery"]
  node_reset_password["Password reset<br/>[reset-password.php]"]
  node_verify_code["Code verification<br/>[verify-code.php]"]
end

subgraph group_engagement["Customer engagement"]
  node_reviews["Customer reviews<br/>[clientreviews.php]"]
  node_user_reviews["Signed-in reviews<br/>[clientreviews.php]"]
  node_about["About company<br/>[about.php]"]
  node_user_about["Signed-in about<br/>[about.php]"]
  node_contact["Contact enquiry<br/>[contact.php]"]
end

node_visitor(("Visitor"))
node_database[("Application database")]

node_visitor -.->|"requests"| node_home
node_home -->|"links to"| node_package_list
node_user_home -->|"links to"| node_package_list
node_package_list -->|"opens package"| node_package_detail
node_package_list -->|"reads packages"| node_database
node_package_detail -->|"reads package"| node_database
node_package_detail -->|"writes booking"| node_database
node_package_detail -->|"redirects after booking"| node_booking_list
node_gallery -->|"reads packages"| node_database
node_reviews -->|"reads reviews"| node_database
node_user_reviews -->|"reads reviews"| node_database
node_user_reviews -->|"redirects when signed out"| node_login
node_user_about -->|"redirects when signed out"| node_login
node_contact -->|"writes enquiry"| node_database
node_booking_list -->|"reads bookings"| node_database
node_booking_list -->|"writes cancellation request"| node_database

click node_home "https://github.com/shadowcipher911/northtravelpk/blob/main/index.php"
click node_package_list "https://github.com/shadowcipher911/northtravelpk/blob/main/tourlist.php"
click node_package_detail "https://github.com/shadowcipher911/northtravelpk/blob/main/tour-single.php"
click node_user_home "https://github.com/shadowcipher911/northtravelpk/blob/main/user/index.php"
click node_user_package_detail "https://github.com/shadowcipher911/northtravelpk/blob/main/user/tour-single.php"
click node_gallery "https://github.com/shadowcipher911/northtravelpk/blob/main/gallery.php"
click node_user_gallery "https://github.com/shadowcipher911/northtravelpk/blob/main/user/gallery.php"
click node_booking_list "https://github.com/shadowcipher911/northtravelpk/blob/main/user/my-booking.php"
click node_login "https://github.com/shadowcipher911/northtravelpk/blob/main/user/login.php"
click node_registration "https://github.com/shadowcipher911/northtravelpk/blob/main/user/reg.php"
click node_profile "https://github.com/shadowcipher911/northtravelpk/blob/main/user/profile.php"
click node_logout "https://github.com/shadowcipher911/northtravelpk/blob/main/user/logout.php"
click node_forgot_password "https://github.com/shadowcipher911/northtravelpk/blob/main/user/forgot-password.php"
click node_reset_password "https://github.com/shadowcipher911/northtravelpk/blob/main/user/reset-password.php"
click node_verify_code "https://github.com/shadowcipher911/northtravelpk/blob/main/user/verify-code.php"
click node_reviews "https://github.com/shadowcipher911/northtravelpk/blob/main/clientreviews.php"
click node_user_reviews "https://github.com/shadowcipher911/northtravelpk/blob/main/user/clientreviews.php"
click node_about "https://github.com/shadowcipher911/northtravelpk/blob/main/about.php"
click node_user_about "https://github.com/shadowcipher911/northtravelpk/blob/main/user/about.php"
click node_contact "https://github.com/shadowcipher911/northtravelpk/blob/main/user/contact.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_package_list,node_package_detail,node_user_home,node_user_package_detail,node_gallery,node_user_gallery toneBlue
class node_booking_list,node_login,node_registration,node_profile,node_logout,node_forgot_password,node_reset_password,node_verify_code,node_database toneAmber
class node_reviews,node_user_reviews,node_about,node_user_about,node_contact toneMint
class node_visitor toneIndigo
```

## Components

### Tour discovery

- [Home page](https://github.com/shadowcipher911/northtravelpk/blob/main/index.php): `index.php`
- [Package list](https://github.com/shadowcipher911/northtravelpk/blob/main/tourlist.php): `tourlist.php`
- [Package details](https://github.com/shadowcipher911/northtravelpk/blob/main/tour-single.php): `tour-single.php`
- [Signed-in home](https://github.com/shadowcipher911/northtravelpk/blob/main/user/index.php): `user/index.php`
- [Signed-in package details](https://github.com/shadowcipher911/northtravelpk/blob/main/user/tour-single.php): `user/tour-single.php`
- [Package gallery](https://github.com/shadowcipher911/northtravelpk/blob/main/gallery.php): `gallery.php`
- [Signed-in gallery](https://github.com/shadowcipher911/northtravelpk/blob/main/user/gallery.php): `user/gallery.php`

### Bookings and accounts

- [My bookings](https://github.com/shadowcipher911/northtravelpk/blob/main/user/my-booking.php): `user/my-booking.php`
- [Login](https://github.com/shadowcipher911/northtravelpk/blob/main/user/login.php): `user/login.php`
- [Registration](https://github.com/shadowcipher911/northtravelpk/blob/main/user/reg.php): `user/reg.php`
- [Profile](https://github.com/shadowcipher911/northtravelpk/blob/main/user/profile.php): `user/profile.php`
- [Logout](https://github.com/shadowcipher911/northtravelpk/blob/main/user/logout.php): `user/logout.php`
- [Password recovery](https://github.com/shadowcipher911/northtravelpk/blob/main/user/forgot-password.php): `user/forgot-password.php`
- [Password reset](https://github.com/shadowcipher911/northtravelpk/blob/main/user/reset-password.php): `user/reset-password.php`
- [Code verification](https://github.com/shadowcipher911/northtravelpk/blob/main/user/verify-code.php): `user/verify-code.php`

### Customer engagement

- [Customer reviews](https://github.com/shadowcipher911/northtravelpk/blob/main/clientreviews.php): `clientreviews.php`
- [Signed-in reviews](https://github.com/shadowcipher911/northtravelpk/blob/main/user/clientreviews.php): `user/clientreviews.php`
- [About company](https://github.com/shadowcipher911/northtravelpk/blob/main/about.php): `about.php`
- [Signed-in about](https://github.com/shadowcipher911/northtravelpk/blob/main/user/about.php): `user/about.php`
- [Contact enquiry](https://github.com/shadowcipher911/northtravelpk/blob/main/user/contact.php): `user/contact.php`

### Other components

- **Visitor**
- **Application database**

## Connections

- Visitor → Home page: requests
- Home page → Package list: links to (evidence: `index.php`)
- Signed-in home → Package list: links to (evidence: `user/index.php`)
- Package list → Package details: opens package (evidence: `tourlist.php`)
- Package list → Application database: reads packages (evidence: `tourlist.php`)
- Package details → Application database: reads package (evidence: `tour-single.php`)
- Package details → Application database: writes booking (evidence: `tour-single.php`)
- Package details → My bookings: redirects after booking (evidence: `tour-single.php`)
- Package gallery → Application database: reads packages (evidence: `gallery.php`)
- Customer reviews → Application database: reads reviews (evidence: `clientreviews.php`)
- Signed-in reviews → Application database: reads reviews (evidence: `user/clientreviews.php`)
- Signed-in reviews → Login: redirects when signed out (evidence: `user/clientreviews.php`)
- Signed-in about → Login: redirects when signed out (evidence: `user/about.php`)
- Contact enquiry → Application database: writes enquiry (evidence: `user/contact.php`)
- My bookings → Application database: reads bookings (evidence: `user/my-booking.php`)
- My bookings → Application database: writes cancellation request (evidence: `user/my-booking.php`)
