# moiseskm09/be-mk architecture

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

- Interactive diagram: https://gitdiagram.com/moiseskm09/be-mk
- Repository: https://github.com/moiseskm09/be-mk

## Overview

This is a Portuguese-language beMK business website advertising web, hosting, domain, email, and management services, with a contact-email endpoint and a bundled PHPMailer library. The visible workflow is a visitor browsing the site; the contact form’s connection to its PHP handler is not shown, so that link is left unasserted. The README is only a placeholder, and several page and JavaScript sources were not excerpted, limiting detail on their behavior.

Main entry points: [`PHPMailer/src/SMTP.php`](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/SMTP.php) (SMTP transport), [`envia_email.php`](https://github.com/moiseskm09/be-mk/blob/main/envia_email.php) (Contact mail handler), [`PHPMailer/src/PHPMailer.php`](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/PHPMailer.php) (Message creation), [`PHPMailer/src/OAuth.php`](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/OAuth.php) (OAuth wrapper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_home["Business homepage<br/>[index.php]"]
  node_legacy_home["Legacy homepage<br/>[OLDindex.php]"]
  node_compact_home["Compact homepage<br/>[indexmin.php]"]
  node_construction["Construction page<br/>[construcao.php]"]
  node_boleto["Boleto page<br/>[boleto.php]"]
end

subgraph group_contact["Contact mail"]
  node_contact_js["Contact behavior<br/>[contato.js]"]
  node_form_plugin["Form plugin<br/>[jquery.form.js]"]
  node_jquery["jQuery runtime<br/>[jquery.js]"]
  node_email_handler["Contact mail handler<br/>[envia_email.php]"]
end

subgraph group_mailer["PHPMailer runtime"]
  node_phpmailer["Message creation<br/>[PHPMailer.php]"]
  node_smtp["SMTP transport<br/>[SMTP.php]"]
  node_exception["Mail exceptions<br/>[Exception.php]"]
  node_oauth["OAuth wrapper<br/>[OAuth.php]"]
  node_oauth_interface["OAuth token interface"]
  node_pop3["POP3 authentication<br/>[POP3.php]"]
end

node_visitor(("Visitor"))
node_smtp_server{{"SMTP server"}}

node_visitor -->|"browses"| node_home
node_form_plugin -->|"uses"| node_jquery
node_email_handler -->|"creates and sends"| node_phpmailer
node_email_handler -->|"loads"| node_exception
node_email_handler -->|"loads"| node_smtp
node_phpmailer -->|"creates transport"| node_smtp
node_phpmailer -->|"throws"| node_exception
node_smtp -->|"connects to"| node_smtp_server
node_oauth -->|"implements"| node_oauth_interface
node_smtp -->|"uses for auth"| node_oauth

click node_home "https://github.com/moiseskm09/be-mk/blob/main/index.php"
click node_legacy_home "https://github.com/moiseskm09/be-mk/blob/main/OLDindex.php"
click node_compact_home "https://github.com/moiseskm09/be-mk/blob/main/indexmin.php"
click node_construction "https://github.com/moiseskm09/be-mk/blob/main/construcao.php"
click node_boleto "https://github.com/moiseskm09/be-mk/blob/main/boleto/boleto.php"
click node_contact_js "https://github.com/moiseskm09/be-mk/blob/main/includes/js/contato.js"
click node_form_plugin "https://github.com/moiseskm09/be-mk/blob/main/includes/js/jquery.form.js"
click node_jquery "https://github.com/moiseskm09/be-mk/blob/main/includes/js/jquery.js"
click node_email_handler "https://github.com/moiseskm09/be-mk/blob/main/envia_email.php"
click node_phpmailer "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/PHPMailer.php"
click node_smtp "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/SMTP.php"
click node_exception "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/Exception.php"
click node_oauth "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/OAuth.php"
click node_oauth_interface "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/OAuthTokenProvider.php"
click node_pop3 "https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/POP3.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_legacy_home,node_compact_home,node_construction,node_boleto toneBlue
class node_contact_js,node_form_plugin,node_jquery,node_email_handler toneAmber
class node_phpmailer,node_smtp,node_exception,node_oauth,node_oauth_interface,node_pop3,node_smtp_server toneMint
class node_visitor toneIndigo
```

## Components

### Website

- [Business homepage](https://github.com/moiseskm09/be-mk/blob/main/index.php): `index.php`
- [Legacy homepage](https://github.com/moiseskm09/be-mk/blob/main/OLDindex.php): `OLDindex.php`
- [Compact homepage](https://github.com/moiseskm09/be-mk/blob/main/indexmin.php): `indexmin.php`
- [Construction page](https://github.com/moiseskm09/be-mk/blob/main/construcao.php): `construcao.php`
- [Boleto page](https://github.com/moiseskm09/be-mk/blob/main/boleto/boleto.php): `boleto/boleto.php`

### Contact mail

- [Contact behavior](https://github.com/moiseskm09/be-mk/blob/main/includes/js/contato.js): `includes/js/contato.js`
- [Form plugin](https://github.com/moiseskm09/be-mk/blob/main/includes/js/jquery.form.js): `includes/js/jquery.form.js`
- [jQuery runtime](https://github.com/moiseskm09/be-mk/blob/main/includes/js/jquery.js): `includes/js/jquery.js`
- [Contact mail handler](https://github.com/moiseskm09/be-mk/blob/main/envia_email.php): `envia_email.php`

### PHPMailer runtime

- [Message creation](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/PHPMailer.php): `PHPMailer/src/PHPMailer.php`
- [SMTP transport](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/SMTP.php): `PHPMailer/src/SMTP.php`
- [Mail exceptions](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/Exception.php): `PHPMailer/src/Exception.php`
- [OAuth wrapper](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/OAuth.php): `PHPMailer/src/OAuth.php`
- [OAuth token interface](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/OAuthTokenProvider.php): `PHPMailer/src/OAuthTokenProvider.php`
- [POP3 authentication](https://github.com/moiseskm09/be-mk/blob/main/PHPMailer/src/POP3.php): `PHPMailer/src/POP3.php`

### Other components

- **Visitor**
- **SMTP server**

## Connections

- Visitor → Business homepage: browses (evidence: `index.php`)
- Form plugin → jQuery runtime: uses (evidence: `includes/js/jquery.form.js`)
- Contact mail handler → Message creation: creates and sends (evidence: `envia_email.php`)
- Contact mail handler → Mail exceptions: loads (evidence: `envia_email.php`)
- Contact mail handler → SMTP transport: loads (evidence: `envia_email.php`)
- Message creation → SMTP transport: creates transport (evidence: `PHPMailer/src/PHPMailer.php`)
- Message creation → Mail exceptions: throws (evidence: `PHPMailer/src/PHPMailer.php`)
- SMTP transport → SMTP server: connects to (evidence: `PHPMailer/src/SMTP.php`)
- OAuth wrapper → OAuth token interface: implements (evidence: `PHPMailer/src/OAuth.php`)
- SMTP transport → OAuth wrapper: uses for auth (evidence: `PHPMailer/src/SMTP.php`)
