# adrienelium/projet-bi architecture

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

- Interactive diagram: https://gitdiagram.com/adrienelium/projet-bi
- Repository: https://github.com/adrienelium/projet-bi

## Overview

PlasticBoX’s BI project includes a PHP data generator whose web page starts generation or database installation. Main.php contains generation logic for production, preparation, administration, and shipping, using Connector.php for MySQL access. The README also describes a broader BI scope—network infrastructure, NoSQL/ETL, and dashboards—but those implementations are not present in the file tree, so they are shown as documented capabilities rather than verified runtime links.

Main entry points: [`Connector.php`](https://github.com/adrienelium/projet-bi/blob/master/Connector.php) (MySQL connector), [`index.php`](https://github.com/adrienelium/projet-bi/blob/master/index.php) (Web entry), [`Main.php`](https://github.com/adrienelium/projet-bi/blob/master/Main.php) (Generation logic), [`README.md`](https://github.com/adrienelium/projet-bi/blob/master/README.md) (NoSQL and ETL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Generator runtime"]
  node_web["Web entry<br/>[index.php]"]
  node_generator["Generation logic<br/>[Main.php]"]
  node_connector["MySQL connector<br/>[Connector.php]"]
end

subgraph group_data["Operational data"]
  node_admin[("Administration DB<br/>[README.md]")]
  node_production[("Production DB<br/>[README.md]")]
  node_preparation[("Preparation DB<br/>[README.md]")]
  node_conditioning[("Conditioning DB<br/>[README.md]")]
  node_shipping[("Shipping DB<br/>[README.md]")]
end

subgraph group_bi["Documented BI scope"]
  node_infrastructure["Network infrastructure<br/>[README.md]"]
  node_nosql[("NoSQL and ETL<br/>[README.md]")]
  node_analytics["Statistics and dashboards<br/>[README.md]"]
end

node_operator(("Operator"))

node_operator -->|"requests"| node_web
node_web -->|"starts or resets"| node_generator
node_generator -->|"queries via"| node_connector
node_connector -.->|"queries"| node_admin
node_connector -.->|"accesses"| node_production
node_connector -.->|"accesses"| node_preparation
node_connector -.->|"accesses"| node_conditioning
node_connector -.->|"accesses"| node_shipping
node_infrastructure -.->|"hosts"| node_nosql
node_nosql -.->|"supports"| node_analytics

click node_web "https://github.com/adrienelium/projet-bi/blob/master/index.php"
click node_generator "https://github.com/adrienelium/projet-bi/blob/master/Main.php"
click node_connector "https://github.com/adrienelium/projet-bi/blob/master/Connector.php"
click node_admin "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_production "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_preparation "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_conditioning "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_shipping "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_infrastructure "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_nosql "https://github.com/adrienelium/projet-bi/blob/master/README.md"
click node_analytics "https://github.com/adrienelium/projet-bi/blob/master/README.md"

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_web,node_generator,node_connector toneBlue
class node_admin,node_production,node_preparation,node_conditioning,node_shipping toneAmber
class node_infrastructure,node_nosql,node_analytics toneMint
class node_operator toneIndigo
```

## Components

### Generator runtime

- [Web entry](https://github.com/adrienelium/projet-bi/blob/master/index.php): `index.php`
- [Generation logic](https://github.com/adrienelium/projet-bi/blob/master/Main.php): `Main.php`
- [MySQL connector](https://github.com/adrienelium/projet-bi/blob/master/Connector.php): `Connector.php`

### Operational data

- [Administration DB](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [Production DB](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [Preparation DB](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [Conditioning DB](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [Shipping DB](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`

### Documented BI scope

- [Network infrastructure](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [NoSQL and ETL](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`
- [Statistics and dashboards](https://github.com/adrienelium/projet-bi/blob/master/README.md): `README.md`

### Other components

- **Operator**

## Connections

- Operator → Web entry: requests (evidence: `index.php`)
- Web entry → Generation logic: starts or resets (evidence: `index.php`)
- Generation logic → MySQL connector: queries via (evidence: `Main.php`)
- MySQL connector → Administration DB: queries
- MySQL connector → Production DB: accesses
- MySQL connector → Preparation DB: accesses
- MySQL connector → Conditioning DB: accesses
- MySQL connector → Shipping DB: accesses
- Network infrastructure → NoSQL and ETL: hosts (evidence: `README.md`)
- NoSQL and ETL → Statistics and dashboards: supports (evidence: `README.md`)
