# denisok94/helper architecture

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

- Interactive diagram: https://gitdiagram.com/denisok94/helper
- Repository: https://github.com/denisok94/helper

## Overview

This is a small PHP utility library, not an application pipeline. Its main workflow is a caller invoking the static Helper facade, which exposes array, date/time, string, file, HTML, and miscellaneous helpers. Separate classes provide console argument parsing, session handling, timers, object cloning, email validation, S3 operations, and SQLite access. The graph reflects documented capabilities; several auxiliary classes are listed in the tree or README but their implementation was not sampled, so no internal relationships are inferred for them.

Main entry points: [`src/Helper.php`](https://github.com/denisok94/helper/blob/main/src/Helper.php) (Static Helper), [`src/traits/HtmlHelper.php`](https://github.com/denisok94/helper/blob/main/src/traits/HtmlHelper.php) (HTML generation), [`src/other/Console.php`](https://github.com/denisok94/helper/blob/main/src/other/Console.php) (Console arguments), [`src/other/S3DataService.php`](https://github.com/denisok94/helper/blob/main/src/other/S3DataService.php) (S3 operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_facade["Helper facade"]
  node_helper["Static Helper<br/>[Helper.php]"]
end

subgraph group_functions["Utility functions"]
  node_array["Array helpers<br/>[ArrayHelper.php]"]
  node_dates["Date helpers<br/>[DataHelper.php]"]
  node_files["File helpers<br/>[FileHelper.php]"]
  node_html["HTML generation<br/>[HtmlHelper.php]"]
  node_misc["Request utilities<br/>[OtherHelper.php]"]
  node_strings["String helpers<br/>[StringHelper.php]"]
end

subgraph group_runtime["Runtime utilities"]
  node_console["Console arguments<br/>[Console.php]"]
  node_timer["Execution timer<br/>[MicroTimer.php]"]
  node_session["Session handling<br/>[Session.php]"]
  node_clone["Object cloning<br/>[CloneObject.php]"]
  node_email["Email validation<br/>[EmailValidator.php]"]
end

subgraph group_storage["Storage services"]
  node_s3["S3 operations<br/>[S3DataService.php]"]
  node_sqlite[("SQLite access<br/>[SQLiteDataBase.php]")]
end

node_caller(("Library caller"))
node_s3service[("S3 service")]

node_caller -->|"calls"| node_helper
node_helper -->|"uses"| node_array
node_helper -->|"uses"| node_dates
node_helper -->|"uses"| node_files
node_helper -->|"uses"| node_html
node_helper -->|"uses"| node_misc
node_helper -->|"uses"| node_strings
node_html -->|"gets extension"| node_files
node_console -->|"formats errors"| node_array
node_caller -->|"parses arguments"| node_console
node_caller -->|"measures runtime"| node_timer
node_caller -->|"handles session"| node_session
node_caller -->|"uses storage"| node_s3
node_s3 -->|"reads and writes"| node_s3service

click node_helper "https://github.com/denisok94/helper/blob/main/src/Helper.php"
click node_array "https://github.com/denisok94/helper/blob/main/src/traits/ArrayHelper.php"
click node_dates "https://github.com/denisok94/helper/blob/main/src/traits/DataHelper.php"
click node_files "https://github.com/denisok94/helper/blob/main/src/traits/FileHelper.php"
click node_html "https://github.com/denisok94/helper/blob/main/src/traits/HtmlHelper.php"
click node_misc "https://github.com/denisok94/helper/blob/main/src/traits/OtherHelper.php"
click node_strings "https://github.com/denisok94/helper/blob/main/src/traits/StringHelper.php"
click node_console "https://github.com/denisok94/helper/blob/main/src/other/Console.php"
click node_timer "https://github.com/denisok94/helper/blob/main/src/other/MicroTimer.php"
click node_session "https://github.com/denisok94/helper/blob/main/src/other/Session.php"
click node_clone "https://github.com/denisok94/helper/blob/main/src/other/CloneObject.php"
click node_email "https://github.com/denisok94/helper/blob/main/src/other/EmailValidator.php"
click node_s3 "https://github.com/denisok94/helper/blob/main/src/other/S3DataService.php"
click node_sqlite "https://github.com/denisok94/helper/blob/main/src/other/SQLiteDataBase.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_helper toneBlue
class node_array,node_dates,node_files,node_html,node_misc,node_strings,node_s3service toneAmber
class node_console,node_timer,node_session,node_clone,node_email toneMint
class node_s3,node_sqlite toneRose
class node_caller toneIndigo
```

## Components

### Helper facade

- [Static Helper](https://github.com/denisok94/helper/blob/main/src/Helper.php): `src/Helper.php`

### Utility functions

- [Array helpers](https://github.com/denisok94/helper/blob/main/src/traits/ArrayHelper.php): `src/traits/ArrayHelper.php`
- [Date helpers](https://github.com/denisok94/helper/blob/main/src/traits/DataHelper.php): `src/traits/DataHelper.php`
- [File helpers](https://github.com/denisok94/helper/blob/main/src/traits/FileHelper.php): `src/traits/FileHelper.php`
- [HTML generation](https://github.com/denisok94/helper/blob/main/src/traits/HtmlHelper.php): `src/traits/HtmlHelper.php`
- [Request utilities](https://github.com/denisok94/helper/blob/main/src/traits/OtherHelper.php): `src/traits/OtherHelper.php`
- [String helpers](https://github.com/denisok94/helper/blob/main/src/traits/StringHelper.php): `src/traits/StringHelper.php`

### Runtime utilities

- [Console arguments](https://github.com/denisok94/helper/blob/main/src/other/Console.php): `src/other/Console.php`
- [Execution timer](https://github.com/denisok94/helper/blob/main/src/other/MicroTimer.php): `src/other/MicroTimer.php`
- [Session handling](https://github.com/denisok94/helper/blob/main/src/other/Session.php): `src/other/Session.php`
- [Object cloning](https://github.com/denisok94/helper/blob/main/src/other/CloneObject.php): `src/other/CloneObject.php`
- [Email validation](https://github.com/denisok94/helper/blob/main/src/other/EmailValidator.php): `src/other/EmailValidator.php`

### Storage services

- [S3 operations](https://github.com/denisok94/helper/blob/main/src/other/S3DataService.php): `src/other/S3DataService.php`
- [SQLite access](https://github.com/denisok94/helper/blob/main/src/other/SQLiteDataBase.php): `src/other/SQLiteDataBase.php`

### Other components

- **Library caller**
- **S3 service**

## Connections

- Library caller → Static Helper: calls (evidence: `README.md`)
- Static Helper → Array helpers: uses (evidence: `src/Helper.php`)
- Static Helper → Date helpers: uses (evidence: `src/Helper.php`)
- Static Helper → File helpers: uses (evidence: `src/Helper.php`)
- Static Helper → HTML generation: uses (evidence: `src/Helper.php`)
- Static Helper → Request utilities: uses (evidence: `src/Helper.php`)
- Static Helper → String helpers: uses (evidence: `src/Helper.php`)
- HTML generation → File helpers: gets extension (evidence: `src/traits/HtmlHelper.php`)
- Console arguments → Array helpers: formats errors (evidence: `src/other/Console.php`)
- Library caller → Console arguments: parses arguments (evidence: `README.md`)
- Library caller → Execution timer: measures runtime (evidence: `README.md`)
- Library caller → Session handling: handles session (evidence: `README.md`)
- Library caller → S3 operations: uses storage (evidence: `README.md`)
- S3 operations → S3 service: reads and writes (evidence: `src/other/S3DataService.php`)
