# mayerbalintdev/gym-one architecture

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

- Interactive diagram: https://gitdiagram.com/mayerbalintdev/gym-one
- Repository: https://github.com/mayerbalintdev/gym-one

## Overview

GYM One is a PHP/MySQL gym-management application for members, staff, and administrators. The principal member journey is registration and email confirmation, login, then access to a member dashboard; administrators manage members, tickets, schedules, payments, and reporting. The tree shows these as page-based PHP subsystems, not as a separately sampled service layer. README capabilities help identify important unsampled branches, but most page-to-page and persistence relationships cannot be verified from the excerpts, so those connections are omitted.

Main entry points: [`register/index.php`](https://github.com/mayerbalintdev/gym-one/blob/main/register/index.php) (Registration), [`login/index.php`](https://github.com/mayerbalintdev/gym-one/blob/main/login/index.php) (Member login), [`admin/trainers/timetable/index.php`](https://github.com/mayerbalintdev/gym-one/blob/main/admin/trainers/timetable/index.php) (Class scheduling), [`register/confirm.php`](https://github.com/mayerbalintdev/gym-one/blob/main/register/confirm.php) (Email confirmation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_member["Member experience"]
  node_registration["Registration<br/>[index.php]"]
  node_confirmation["Email confirmation<br/>[confirm.php]"]
  node_login["Member login<br/>[index.php]"]
  node_member_dashboard["Member dashboard<br/>[index.php]"]
  node_member_profile["Member profile<br/>[index.php]"]
  node_member_invoices["Member invoices<br/>[index.php]"]
  node_member_stats["Member statistics<br/>[index.php]"]
  node_digital_pass["Digital pass<br/>[pkpass.php]"]
end

subgraph group_operations["Gym operations"]
  node_ticket_catalog["Ticket catalog<br/>[index.php]"]
  node_class_schedule["Class scheduling<br/>[index.php]"]
  node_trainer_management["Trainer management<br/>[index.php]"]
  node_ticket_management["Ticket management<br/>[index.php]"]
  node_sales_checkout["Sales checkout<br/>[index.php]"]
  node_payment_processing["Payment processing<br/>[index.php]"]
end

subgraph group_admin["Administration"]
  node_admin_login["Administrator login<br/>[index.php]"]
  node_admin_dashboard["Admin dashboard<br/>[index.php]"]
  node_member_management["Member management<br/>[index.php]"]
  node_admin_invoices["Invoice management<br/>[index.php]"]
  node_reporting["Business reports<br/>[index.php]"]
  node_system_settings["Gym settings<br/>[index.php]"]
  node_business_hours["Operating hours<br/>[index.php]"]
  node_email_settings["Email settings<br/>[index.php]"]
end

subgraph group_platform["Notifications and updates"]
  node_reminders["Reminder delivery<br/>[send_reminders.php]"]
  node_contact["Contact form<br/>[index.php]"]
  node_updater["Application updater<br/>[updater.php]"]
end

node_visitor(("Visitor"))
node_member(("Gym member"))
node_administrator(("Administrator"))

node_visitor -.->|"registers"| node_registration
node_registration -.->|"confirms email"| node_confirmation
node_member -.->|"signs in"| node_login
node_login -->|"opens dashboard"| node_member_dashboard
node_member -.->|"views tickets"| node_ticket_catalog
node_member -.->|"books classes"| node_class_schedule
node_administrator -.->|"signs in"| node_admin_login
node_administrator -->|"manages gym"| node_admin_dashboard
node_administrator -->|"manages members"| node_member_management
node_administrator -->|"manages tickets"| node_ticket_management
node_administrator -->|"manages schedule"| node_class_schedule
node_administrator -->|"reviews reports"| node_reporting

click node_registration "https://github.com/mayerbalintdev/gym-one/blob/main/register/index.php"
click node_confirmation "https://github.com/mayerbalintdev/gym-one/blob/main/register/confirm.php"
click node_login "https://github.com/mayerbalintdev/gym-one/blob/main/login/index.php"
click node_member_dashboard "https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/index.php"
click node_member_profile "https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/profile/index.php"
click node_member_invoices "https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/invoices/index.php"
click node_member_stats "https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/stats/index.php"
click node_digital_pass "https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/pkpass.php"
click node_ticket_catalog "https://github.com/mayerbalintdev/gym-one/blob/main/prices/index.php"
click node_class_schedule "https://github.com/mayerbalintdev/gym-one/blob/main/admin/trainers/timetable/index.php"
click node_trainer_management "https://github.com/mayerbalintdev/gym-one/blob/main/admin/trainers/personal/index.php"
click node_ticket_management "https://github.com/mayerbalintdev/gym-one/blob/main/admin/shop/tickets/index.php"
click node_sales_checkout "https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/sell/index.php"
click node_payment_processing "https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/sell/payment/index.php"
click node_admin_login "https://github.com/mayerbalintdev/gym-one/blob/main/admin/index.php"
click node_admin_dashboard "https://github.com/mayerbalintdev/gym-one/blob/main/admin/dashboard/index.php"
click node_member_management "https://github.com/mayerbalintdev/gym-one/blob/main/admin/users/index.php"
click node_admin_invoices "https://github.com/mayerbalintdev/gym-one/blob/main/admin/invoices/index.php"
click node_reporting "https://github.com/mayerbalintdev/gym-one/blob/main/admin/statistics/index.php"
click node_system_settings "https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/mainsettings/index.php"
click node_business_hours "https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/hours/index.php"
click node_email_settings "https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/smtp/index.php"
click node_reminders "https://github.com/mayerbalintdev/gym-one/blob/main/crontab/send_reminders.php"
click node_contact "https://github.com/mayerbalintdev/gym-one/blob/main/contact/index.php"
click node_updater "https://github.com/mayerbalintdev/gym-one/blob/main/admin/updater/updater.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_registration,node_confirmation,node_login,node_member_dashboard,node_member_profile,node_member_invoices,node_member_stats,node_digital_pass toneBlue
class node_ticket_catalog,node_class_schedule,node_trainer_management,node_ticket_management,node_sales_checkout,node_payment_processing toneAmber
class node_admin_login,node_admin_dashboard,node_member_management,node_admin_invoices,node_reporting,node_system_settings,node_business_hours,node_email_settings toneMint
class node_reminders,node_contact,node_updater toneRose
class node_visitor,node_member,node_administrator toneIndigo
```

## Components

### Member experience

- [Registration](https://github.com/mayerbalintdev/gym-one/blob/main/register/index.php): `register/index.php`
- [Email confirmation](https://github.com/mayerbalintdev/gym-one/blob/main/register/confirm.php): `register/confirm.php`
- [Member login](https://github.com/mayerbalintdev/gym-one/blob/main/login/index.php): `login/index.php`
- [Member dashboard](https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/index.php): `dashboard/index.php`
- [Member profile](https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/profile/index.php): `dashboard/profile/index.php`
- [Member invoices](https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/invoices/index.php): `dashboard/invoices/index.php`
- [Member statistics](https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/stats/index.php): `dashboard/stats/index.php`
- [Digital pass](https://github.com/mayerbalintdev/gym-one/blob/main/dashboard/pkpass.php): `dashboard/pkpass.php`

### Gym operations

- [Ticket catalog](https://github.com/mayerbalintdev/gym-one/blob/main/prices/index.php): `prices/index.php`
- [Class scheduling](https://github.com/mayerbalintdev/gym-one/blob/main/admin/trainers/timetable/index.php): `admin/trainers/timetable/index.php`
- [Trainer management](https://github.com/mayerbalintdev/gym-one/blob/main/admin/trainers/personal/index.php): `admin/trainers/personal/index.php`
- [Ticket management](https://github.com/mayerbalintdev/gym-one/blob/main/admin/shop/tickets/index.php): `admin/shop/tickets/index.php`
- [Sales checkout](https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/sell/index.php): `admin/boss/sell/index.php`
- [Payment processing](https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/sell/payment/index.php): `admin/boss/sell/payment/index.php`

### Administration

- [Administrator login](https://github.com/mayerbalintdev/gym-one/blob/main/admin/index.php): `admin/index.php`
- [Admin dashboard](https://github.com/mayerbalintdev/gym-one/blob/main/admin/dashboard/index.php): `admin/dashboard/index.php`
- [Member management](https://github.com/mayerbalintdev/gym-one/blob/main/admin/users/index.php): `admin/users/index.php`
- [Invoice management](https://github.com/mayerbalintdev/gym-one/blob/main/admin/invoices/index.php): `admin/invoices/index.php`
- [Business reports](https://github.com/mayerbalintdev/gym-one/blob/main/admin/statistics/index.php): `admin/statistics/index.php`
- [Gym settings](https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/mainsettings/index.php): `admin/boss/mainsettings/index.php`
- [Operating hours](https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/hours/index.php): `admin/boss/hours/index.php`
- [Email settings](https://github.com/mayerbalintdev/gym-one/blob/main/admin/boss/smtp/index.php): `admin/boss/smtp/index.php`

### Notifications and updates

- [Reminder delivery](https://github.com/mayerbalintdev/gym-one/blob/main/crontab/send_reminders.php): `crontab/send_reminders.php`
- [Contact form](https://github.com/mayerbalintdev/gym-one/blob/main/contact/index.php): `contact/index.php`
- [Application updater](https://github.com/mayerbalintdev/gym-one/blob/main/admin/updater/updater.php): `admin/updater/updater.php`

### Other components

- **Visitor**
- **Gym member**
- **Administrator**

## Connections

- Visitor → Registration: registers
- Registration → Email confirmation: confirms email
- Gym member → Member login: signs in
- Member login → Member dashboard: opens dashboard
- Gym member → Ticket catalog: views tickets
- Gym member → Class scheduling: books classes
- Administrator → Administrator login: signs in
- Administrator → Admin dashboard: manages gym
- Administrator → Member management: manages members
- Administrator → Ticket management: manages tickets
- Administrator → Class scheduling: manages schedule
- Administrator → Business reports: reviews reports
