# kazimind-wellness/kazimind-website architecture

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

- Interactive diagram: https://gitdiagram.com/kazimind-wellness/kazimind-website
- Repository: https://github.com/kazimind-wellness/kazimind-website

## Overview

Kazimind is a PHP wellness and mental-health services website. Visitors browse therapy and organizational services, explore events and articles, and can submit an appointment request; users also have account/profile flows, while administrators manage blog content. The graph covers those product areas and shared page layout, plus documented OAuth and calendar-related modules. Several event and account handlers were not excerpted, so uncertain internal links are omitted; the README is empty.

Main entry points: [`includes/layout.php`](https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/layout.php) (Page layout), [`db.php`](https://github.com/kazimind-wellness/kazimind-website/blob/main/db.php) (Application database), [`services.php`](https://github.com/kazimind-wellness/kazimind-website/blob/main/services.php) (Services index), [`index.php`](https://github.com/kazimind-wellness/kazimind-website/blob/main/index.php) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public website"]
  node_home["Home page<br/>[index.php]"]
  node_about["About and focus<br/>[aboutUs.php]"]
  node_team["Team<br/>[ourTeam.php]"]
  node_blog["Blog listing<br/>[Kazimind_blogs.php]"]
end

subgraph group_care["Care services"]
  node_services["Services index<br/>[services.php]"]
  node_therapy["Psychotherapy"]
  node_organization["Organizational services"]
  node_bootcamp["Mental health bootcamp"]
end

subgraph group_engagement["Bookings and events"]
  node_appointment["Appointment request"]
  node_contact["Contact<br/>[contactUs.php]"]
  node_events["Event listings<br/>[fetch_events.php]"]
  node_event_calendar["Calendar handlers"]
end

subgraph group_accounts["Accounts and integrations"]
  node_blog_admin["Blog administration<br/>[admin.php]"]
  node_register["Registration<br/>[register.php]"]
  node_profile["User profile<br/>[profile.php]"]
  node_google_oauth["Google OAuth callback"]
  node_facebook_oauth["Facebook OAuth callback"]
  node_database[("Application database<br/>[db.php]")]
end

subgraph group_shared["Shared presentation"]
  node_layout["Page layout<br/>[layout.php]"]
  node_header["Navigation header<br/>[header.php]"]
  node_footer["Site footer<br/>[footer.php]"]
end

node_visitor(("Visitor"))
node_google{{"Google services"}}
node_facebook{{"Facebook"}}
node_email{{"Email service"}}

node_visitor -->|"opens"| node_home
node_home -->|"loads events"| node_events
node_home -->|"renders via"| node_layout
node_services -->|"links to"| node_therapy
node_services -->|"links to"| node_organization
node_services -.->|"links to"| node_bootcamp
node_appointment -.->|"sends request"| node_email
node_appointment -->|"renders via"| node_layout
node_contact -->|"renders via"| node_layout
node_blog_admin -->|"connects through"| node_database
node_register -->|"connects through"| node_database
node_profile -->|"connects through"| node_database
node_google_oauth -->|"connects through"| node_database
node_facebook_oauth -->|"connects through"| node_database
node_google_oauth -.->|"handles OAuth"| node_google
node_facebook_oauth -.->|"handles OAuth"| node_facebook
node_layout -->|"includes"| node_header
node_layout -->|"includes"| node_footer

click node_home "https://github.com/kazimind-wellness/kazimind-website/blob/main/index.php"
click node_about "https://github.com/kazimind-wellness/kazimind-website/blob/main/aboutUs.php"
click node_team "https://github.com/kazimind-wellness/kazimind-website/blob/main/ourTeam.php"
click node_services "https://github.com/kazimind-wellness/kazimind-website/blob/main/services.php"
click node_therapy "https://github.com/kazimind-wellness/kazimind-website/blob/main/PsychotherapyServices.php"
click node_organization "https://github.com/kazimind-wellness/kazimind-website/blob/main/OrganizationalDevelopmentServices.php"
click node_bootcamp "https://github.com/kazimind-wellness/kazimind-website/blob/main/mentalHealthBootCamp.php"
click node_appointment "https://github.com/kazimind-wellness/kazimind-website/blob/main/bookAppointment.php"
click node_contact "https://github.com/kazimind-wellness/kazimind-website/blob/main/contactUs.php"
click node_events "https://github.com/kazimind-wellness/kazimind-website/blob/main/fetch_events.php"
click node_event_calendar "https://github.com/kazimind-wellness/kazimind-website/blob/main/get_calendar_events.php"
click node_blog "https://github.com/kazimind-wellness/kazimind-website/blob/main/Kazimind_blogs.php"
click node_blog_admin "https://github.com/kazimind-wellness/kazimind-website/blob/main/admin.php"
click node_register "https://github.com/kazimind-wellness/kazimind-website/blob/main/register.php"
click node_profile "https://github.com/kazimind-wellness/kazimind-website/blob/main/profile.php"
click node_google_oauth "https://github.com/kazimind-wellness/kazimind-website/blob/main/google-callback.php"
click node_facebook_oauth "https://github.com/kazimind-wellness/kazimind-website/blob/main/facebook-callback.php"
click node_database "https://github.com/kazimind-wellness/kazimind-website/blob/main/db.php"
click node_layout "https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/layout.php"
click node_header "https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/header.php"
click node_footer "https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/footer.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_about,node_team,node_blog toneBlue
class node_services,node_therapy,node_organization,node_bootcamp toneAmber
class node_appointment,node_contact,node_events,node_event_calendar toneMint
class node_blog_admin,node_register,node_profile,node_google_oauth,node_facebook_oauth,node_database toneRose
class node_layout,node_header,node_footer,node_visitor,node_google,node_facebook,node_email toneIndigo
```

## Components

### Public website

- [Home page](https://github.com/kazimind-wellness/kazimind-website/blob/main/index.php): `index.php`
- [About and focus](https://github.com/kazimind-wellness/kazimind-website/blob/main/aboutUs.php): `aboutUs.php`
- [Team](https://github.com/kazimind-wellness/kazimind-website/blob/main/ourTeam.php): `ourTeam.php`
- [Blog listing](https://github.com/kazimind-wellness/kazimind-website/blob/main/Kazimind_blogs.php): `Kazimind_blogs.php`

### Care services

- [Services index](https://github.com/kazimind-wellness/kazimind-website/blob/main/services.php): `services.php`
- [Psychotherapy](https://github.com/kazimind-wellness/kazimind-website/blob/main/PsychotherapyServices.php): `PsychotherapyServices.php`
- [Organizational services](https://github.com/kazimind-wellness/kazimind-website/blob/main/OrganizationalDevelopmentServices.php): `OrganizationalDevelopmentServices.php`
- [Mental health bootcamp](https://github.com/kazimind-wellness/kazimind-website/blob/main/mentalHealthBootCamp.php): `mentalHealthBootCamp.php`

### Bookings and events

- [Appointment request](https://github.com/kazimind-wellness/kazimind-website/blob/main/bookAppointment.php): `bookAppointment.php`
- [Contact](https://github.com/kazimind-wellness/kazimind-website/blob/main/contactUs.php): `contactUs.php`
- [Event listings](https://github.com/kazimind-wellness/kazimind-website/blob/main/fetch_events.php): `fetch_events.php`
- [Calendar handlers](https://github.com/kazimind-wellness/kazimind-website/blob/main/get_calendar_events.php): `get_calendar_events.php`

### Accounts and integrations

- [Blog administration](https://github.com/kazimind-wellness/kazimind-website/blob/main/admin.php): `admin.php`
- [Registration](https://github.com/kazimind-wellness/kazimind-website/blob/main/register.php): `register.php`
- [User profile](https://github.com/kazimind-wellness/kazimind-website/blob/main/profile.php): `profile.php`
- [Google OAuth callback](https://github.com/kazimind-wellness/kazimind-website/blob/main/google-callback.php): `google-callback.php`
- [Facebook OAuth callback](https://github.com/kazimind-wellness/kazimind-website/blob/main/facebook-callback.php): `facebook-callback.php`
- [Application database](https://github.com/kazimind-wellness/kazimind-website/blob/main/db.php): `db.php`

### Shared presentation

- [Page layout](https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/layout.php): `includes/layout.php`
- [Navigation header](https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/header.php): `includes/header.php`
- [Site footer](https://github.com/kazimind-wellness/kazimind-website/blob/main/includes/footer.php): `includes/footer.php`

### Other components

- **Visitor**
- **Google services**
- **Facebook**
- **Email service**

## Connections

- Visitor → Home page: opens
- Home page → Event listings: loads events (evidence: `index.php`)
- Home page → Page layout: renders via (evidence: `index.php`)
- Services index → Psychotherapy: links to (evidence: `services.php`)
- Services index → Organizational services: links to (evidence: `services.php`)
- Services index → Mental health bootcamp: links to
- Appointment request → Email service: sends request
- Appointment request → Page layout: renders via (evidence: `bookAppointment.php`)
- Contact → Page layout: renders via (evidence: `contactUs.php`)
- Blog administration → Application database: connects through (evidence: `admin.php`)
- Registration → Application database: connects through (evidence: `register.php`)
- User profile → Application database: connects through (evidence: `profile.php`)
- Google OAuth callback → Application database: connects through (evidence: `google-callback.php`)
- Facebook OAuth callback → Application database: connects through (evidence: `facebook-callback.php`)
- Google OAuth callback → Google services: handles OAuth
- Facebook OAuth callback → Facebook: handles OAuth
- Page layout → Navigation header: includes (evidence: `includes/layout.php`)
- Page layout → Site footer: includes (evidence: `includes/layout.php`)
