# sylius/sylius-standard architecture

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

- Interactive diagram: https://gitdiagram.com/sylius/sylius-standard
- Repository: https://github.com/sylius/sylius-standard

## Overview

##### Core Domain Components

Create distinct sections for the core business domains (based on /src/Entity):
- Product Management
- Order Processing
- Customer Management
- Payment System
- Shipping
- Taxation
- Promotion System
- User Management

##### Integration Points

External service connections:
- Payment Gateways (from /src/Entity/Payment)
- REST API Endpoints
- OAuth Integration
- Currency Exchange Services

##### Component Relationships

Key interactions:
**Frontend Layer**
- ↓
**API/Controller Layer**
- ↓
**Service Layer (Business Logic)**
- ↓
**Entity Layer**
- ↓
**Database Layer**

##### Technical Details

Annotations for:
- Symfony Framework components
- Doctrine ORM
- API Platform
- Message Queue patterns
- Caching mechanisms (from /config/packages/cache.yaml)
- Security layers (from /config/packages/security.yaml)

##### Deployment Components

Include:
- Docker container structure (from compose.yml)
- Platform.sh configuration (from .platform.app.yaml)
- Asset building pipeline (webpack)

##### Cross-Cutting Concerns

Highlight:
- Authentication/Authorization (JWT)
- Logging/Monitoring
- Image handling (Liip Imagine)
- Translations
- Event system

- Core eCommerce functionality (Products, Orders, Customers)
- Supporting services (Payment, Shipping)
- Infrastructure components (Database, Cache, Message Queue)
- External integrations (Payment Gateways, OAuth)

## Diagram (Mermaid)

```mermaid
graph TB
    %% Style Definitions
    classDef frontend fill:#e1f5fe,stroke:#01579b
    classDef backend fill:#e8f5e9,stroke:#1b5e20
    classDef infrastructure fill:#fff3e0,stroke:#e65100
    classDef integration fill:#f3e5f5,stroke:#4a148c
    classDef entity fill:#fce4ec,stroke:#880e4f
    
    %% Frontend Layer
    subgraph Frontend
        AP["Admin Panel"]
        SF["Shop Frontend"]
        TS["Template System"]
    end
    
    %% Application Layer
    subgraph Application
        API["API Platform"]
        CTRL["Controllers"]
    end
    
    %% Core Domain Components
    subgraph CoreDomain
        PM["Product Management"]
        OP["Order Processing"]
        CM["Customer Management"]
        PS["Payment System"]
        SS["Shipping System"]
        TS_1["Taxation System"]
        PRS["Promotion System"]
        UM["User Management"]
        CUR["Currency System"]
        CHM["Channel Management"]
        AM["Address Management"]
    end
    
    %% Infrastructure Layer
    subgraph Infrastructure
        DB[(Database)]
        MQ["Message Queue"]
        FS["File Storage"]
        CACHE["Cache System"]
        SEC["Security Layer"]
        IH["Image Handler"]
        TRANS["Translation System"]
    end
    
    %% External Integrations
    subgraph Integrations
        PG["Payment Gateways"]
        OAuth["OAuth Service"]
        CES["Currency Exchange"]
    end
    
    %% Relationships
    Frontend --> Application
    Application --> CoreDomain
    CoreDomain --> Infrastructure
    PS --> PG
    CUR --> CES
    UM --> OAuth
    
    %% Click Events
    click AP "https://github.com/Sylius/Sylius-Standard/tree/2.0/assets/admin"
    click SF "https://github.com/Sylius/Sylius-Standard/tree/2.0/assets/shop"
    click TS "https://github.com/Sylius/Sylius-Standard/tree/2.0/templates"
    click API "https://github.com/Sylius/Sylius-Standard/tree/2.0/config/api_platform"
    click CTRL "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Controller"
    click PM "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Product"
    click OP "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Order"
    click CM "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Customer"
    click PS "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Payment"
    click SS "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Shipping"
    click TS_1 "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Taxation"
    click PRS "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Promotion"
    click UM "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/User"
    click MQ "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/messenger.yaml"
    click FS "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/flysystem.yaml"
    click SEC "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/security.yaml"
    click CACHE "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/cache.yaml"
    click PG "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/payum.yaml"
    click IH "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/liip_imagine.yaml"
    click TRANS "https://github.com/Sylius/Sylius-Standard/blob/2.0/config/packages/translation.yaml"
    click CUR "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Currency"
    click CHM "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Channel"
    click AM "https://github.com/Sylius/Sylius-Standard/tree/2.0/src/Entity/Addressing"
    
    %% Styling
    class AP,SF,TS frontend
    class API,CTRL backend
    class DB,MQ,FS,CACHE,SEC,IH,TRANS infrastructure
    class PG,OAuth,CES integration
    class PM,OP,CM,PS,SS,TS_1,PRS,UM,CUR,CHM,AM entity
```
