# evrenonur/e-belge architecture

> Architecture diagram of the GitHub repository evrenonur/e-belge, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/evrenonur/e-belge
- Repository: https://github.com/evrenonur/e-belge

## Overview

##### Main Components

a) Core Components:
- E-Invoice (E-Fatura) Module
- E-Dispatch Note (E-İrsaliye) Module
- XML Generation Layer
- Document Validation Layer

b) External Interfaces:
- Composer Package Manager Integration
- XML Output Interface

**Client Application Integration**

**Package Interface (Composer)**

**┌─────────────────────┐**
- Main Components   │
- ┬───────┤
- EFatura.php│       │
- XML   │
- EIrsaliye   │ Gen  │
- .php     │      │
- ┴───────┘

**XML Output Generation**

##### Specific Elements

- Rectangles: Main modules (EFatura, EIrsaliye)
- Hexagons: External interfaces

- Blue: Core components
- Green: External interfaces
- Yellow: Data processing layers
- Gray: Output formats

##### Flow Representation

- Input flow from client applications
- Processing flow through the modules
- Output flow to XML generation

##### Technical Details

- PHP Version compatibility
- Composer dependency management
- XML schema validation
- Document type specifications

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client["Client Application Layer"]
        ClientApp["Client Applications"]
    end

    subgraph Package["Package Management Layer"]
        Composer["Composer Package Manager"]
    end

    subgraph Core["Core Processing Layer"]
        subgraph Modules["Document Processing Modules"]
            EInvoice["E-Invoice Module"]
            EDispatch["E-Dispatch Note Module"]
        end
        
        subgraph Processing["Processing Components"]
            XMLGen["XML Generation"]
            Validation["Document Validation"]
        end
    end

    subgraph Output["Output Layer"]
        XMLOutput[("XML Output")]
    end

    %% Connections
    ClientApp --> Composer
    Composer --> EInvoice
    Composer --> EDispatch
    EInvoice --> XMLGen
    EDispatch --> XMLGen
    XMLGen --> Validation
    Validation --> XMLOutput

    %% Click Events
    click EInvoice "https://github.com/evrenonur/e-belge/blob/master/src/EFatura.php"
    click EDispatch "https://github.com/evrenonur/e-belge/blob/master/src/EIrsaliye.php"
    click Composer "https://github.com/evrenonur/e-belge/blob/master/composer.json"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px
    classDef module fill:#ddf1d5,stroke:#82b366
    classDef interface fill:#dae8fc,stroke:#6c8ebf
    classDef output fill:#fff2cc,stroke:#d6b656
    classDef processing fill:#e1d5e7,stroke:#9673a6

    class EInvoice,EDispatch module
    class Composer interface
    class XMLOutput output
    class XMLGen,Validation processing

    %% Legend
    subgraph Legend
        ModuleL["Module"]:::module
        InterfaceL["Interface"]:::interface
        ProcessingL["Processing"]:::processing
        OutputL["Output"]:::output
    end
```
