# dhobdy062/mautic architecture

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

- Interactive diagram: https://gitdiagram.com/dhobdy062/mautic
- Repository: https://github.com/dhobdy062/mautic

## Overview

Mautic is self-hosted marketing automation software. A user manages contacts and company records, creates forms and campaign journeys, and uses campaign automation to engage contacts through marketing channels; integrations extend the platform. The graph highlights contact management, campaign design and execution, content/channel capabilities, and extension/API layers. Several runtime subsystems are represented from the README and repository tree rather than sampled implementation, so their internal wiring is intentionally limited.

Main entry points: [`app/bundles/CampaignBundle/Executioner/EventExecutioner.php`](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Executioner/EventExecutioner.php) (Journey execution), [`app/bundles/LeadBundle/Controller/LeadController.php`](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Controller/LeadController.php) (Contact UI), [`app/bundles/LeadBundle/Model/LeadModel.php`](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Model/LeadModel.php) (Contact services), [`plugins/MauticClearbitBundle/Controller/ClearbitController.php`](https://github.com/dhobdy062/mautic/blob/7.x/plugins/MauticClearbitBundle/Controller/ClearbitController.php) (Enrichment integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_contact["Contact management"]
  node_lead_controller["Contact UI<br/>[LeadController.php]"]
  node_lead_model["Contact services<br/>[LeadModel.php]"]
  node_lead_data[("Contacts and companies<br/>[Lead.php]")]
  node_company_model["Company services<br/>[CompanyModel.php]"]
end

subgraph group_campaign["Campaign automation"]
  node_campaign_ui["Campaign management"]
  node_campaign_model["Campaign services<br/>[CampaignModel.php]"]
  node_campaign_data[("Campaign definitions<br/>[Campaign.php]")]
  node_campaign_runtime["Journey execution"]
  node_campaign_logs[("Execution logs<br/>[LeadEventLog.php]")]
end

subgraph group_channels["Marketing channels"]
  node_forms[("Forms and submissions<br/>[Form.php]")]
  node_email[("Email marketing<br/>[Email.php]")]
  node_pages["Web pages<br/>[PageController.php]"]
  node_assets["Digital assets<br/>[AssetModel.php]"]
end

subgraph group_platform["Platform services"]
  node_permissions["Access control"]
end

subgraph group_extensions["Integrations and API"]
  node_api["REST API"]
  node_clearbit["Enrichment integration"]
  node_integration_settings[("Integration settings<br/>[Integration.php]")]
end

node_user(("Marketing user"))

node_user -->|"manages contacts"| node_lead_controller
node_lead_controller -->|"uses services"| node_lead_model
node_lead_model -->|"creates and updates"| node_lead_data
node_lead_controller -->|"manages membership"| node_campaign_model
node_lead_model -->|"company changes"| node_company_model
node_user -->|"designs campaigns"| node_campaign_ui
node_campaign_ui -.->|"manages campaigns"| node_campaign_model
node_campaign_model -.->|"persists definitions"| node_campaign_data
node_campaign_runtime -.->|"records execution"| node_campaign_logs
node_campaign_runtime -.->|"processes contacts"| node_lead_data
node_campaign_runtime -.->|"uses channels"| node_email
node_campaign_runtime -.->|"uses channels"| node_forms
node_campaign_runtime -.->|"uses channels"| node_assets
node_campaign_runtime -.->|"uses channels"| node_pages
node_user -->|"builds forms"| node_forms
node_user -->|"creates marketing"| node_email
node_user -->|"accesses platform"| node_api
node_api -->|"exposes contact API"| node_lead_data
node_api -->|"exposes form API"| node_forms
node_user -->|"enriches records"| node_clearbit
node_clearbit -->|"updates contacts"| node_lead_model
node_clearbit -->|"updates companies"| node_company_model
node_integration_settings -.->|"stores configuration"| node_clearbit
node_lead_controller -.->|"checks access"| node_permissions

click node_lead_controller "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Controller/LeadController.php"
click node_lead_model "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Model/LeadModel.php"
click node_lead_data "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Entity/Lead.php"
click node_company_model "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Model/CompanyModel.php"
click node_campaign_ui "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Controller/CampaignController.php"
click node_campaign_model "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Model/CampaignModel.php"
click node_campaign_data "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Entity/Campaign.php"
click node_campaign_runtime "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Executioner/EventExecutioner.php"
click node_campaign_logs "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Entity/LeadEventLog.php"
click node_forms "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/FormBundle/Entity/Form.php"
click node_email "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/EmailBundle/Entity/Email.php"
click node_pages "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/PageBundle/Controller/PageController.php"
click node_assets "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/AssetBundle/Model/AssetModel.php"
click node_api "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/ApiBundle/Serializer/Driver/ApiMetadataDriver.php"
click node_clearbit "https://github.com/dhobdy062/mautic/blob/7.x/plugins/MauticClearbitBundle/Controller/ClearbitController.php"
click node_integration_settings "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/PluginBundle/Entity/Integration.php"
click node_permissions "https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CoreBundle/Security/Permissions/CorePermissions.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_lead_controller,node_lead_model,node_lead_data,node_company_model,node_user toneBlue
class node_campaign_ui,node_campaign_model,node_campaign_data,node_campaign_runtime,node_campaign_logs toneAmber
class node_forms,node_email,node_pages,node_assets toneMint
class node_permissions toneRose
class node_api,node_clearbit,node_integration_settings toneIndigo
```

## Components

### Contact management

- [Contact UI](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Controller/LeadController.php): `app/bundles/LeadBundle/Controller/LeadController.php`
- [Contact services](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Model/LeadModel.php): `app/bundles/LeadBundle/Model/LeadModel.php`
- [Contacts and companies](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Entity/Lead.php): `app/bundles/LeadBundle/Entity/Lead.php`
- [Company services](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/LeadBundle/Model/CompanyModel.php): `app/bundles/LeadBundle/Model/CompanyModel.php`

### Campaign automation

- [Campaign management](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Controller/CampaignController.php): `app/bundles/CampaignBundle/Controller/CampaignController.php`
- [Campaign services](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Model/CampaignModel.php): `app/bundles/CampaignBundle/Model/CampaignModel.php`
- [Campaign definitions](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Entity/Campaign.php): `app/bundles/CampaignBundle/Entity/Campaign.php`
- [Journey execution](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Executioner/EventExecutioner.php): `app/bundles/CampaignBundle/Executioner/EventExecutioner.php`
- [Execution logs](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CampaignBundle/Entity/LeadEventLog.php): `app/bundles/CampaignBundle/Entity/LeadEventLog.php`

### Marketing channels

- [Forms and submissions](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/FormBundle/Entity/Form.php): `app/bundles/FormBundle/Entity/Form.php`
- [Email marketing](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/EmailBundle/Entity/Email.php): `app/bundles/EmailBundle/Entity/Email.php`
- [Web pages](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/PageBundle/Controller/PageController.php): `app/bundles/PageBundle/Controller/PageController.php`
- [Digital assets](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/AssetBundle/Model/AssetModel.php): `app/bundles/AssetBundle/Model/AssetModel.php`

### Platform services

- [Access control](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/CoreBundle/Security/Permissions/CorePermissions.php): `app/bundles/CoreBundle/Security/Permissions/CorePermissions.php`

### Integrations and API

- [REST API](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/ApiBundle/Serializer/Driver/ApiMetadataDriver.php): `app/bundles/ApiBundle/Serializer/Driver/ApiMetadataDriver.php`
- [Enrichment integration](https://github.com/dhobdy062/mautic/blob/7.x/plugins/MauticClearbitBundle/Controller/ClearbitController.php): `plugins/MauticClearbitBundle/Controller/ClearbitController.php`
- [Integration settings](https://github.com/dhobdy062/mautic/blob/7.x/app/bundles/PluginBundle/Entity/Integration.php): `app/bundles/PluginBundle/Entity/Integration.php`

### Other components

- **Marketing user**

## Connections

- Marketing user → Contact UI: manages contacts (evidence: `README.md`)
- Contact UI → Contact services: uses services (evidence: `app/bundles/LeadBundle/Controller/LeadController.php`)
- Contact services → Contacts and companies: creates and updates (evidence: `app/bundles/LeadBundle/Model/LeadModel.php`)
- Contact UI → Campaign services: manages membership (evidence: `app/bundles/LeadBundle/Controller/LeadController.php`)
- Contact services → Company services: company changes (evidence: `app/bundles/LeadBundle/Model/LeadModel.php`)
- Marketing user → Campaign management: designs campaigns (evidence: `README.md`)
- Campaign management → Campaign services: manages campaigns
- Campaign services → Campaign definitions: persists definitions
- Journey execution → Execution logs: records execution
- Journey execution → Contacts and companies: processes contacts
- Journey execution → Email marketing: uses channels
- Journey execution → Forms and submissions: uses channels
- Journey execution → Digital assets: uses channels
- Journey execution → Web pages: uses channels
- Marketing user → Forms and submissions: builds forms (evidence: `README.md`)
- Marketing user → Email marketing: creates marketing (evidence: `README.md`)
- Marketing user → REST API: accesses platform (evidence: `README.md`)
- REST API → Contacts and companies: exposes contact API (evidence: `app/bundles/LeadBundle/Entity/Lead.php`)
- REST API → Forms and submissions: exposes form API (evidence: `app/bundles/FormBundle/Entity/Form.php`)
- Marketing user → Enrichment integration: enriches records (evidence: `plugins/MauticClearbitBundle/Controller/ClearbitController.php`)
- Enrichment integration → Contact services: updates contacts (evidence: `plugins/MauticClearbitBundle/Controller/ClearbitController.php`)
- Enrichment integration → Company services: updates companies (evidence: `plugins/MauticClearbitBundle/Controller/ClearbitController.php`)
- Integration settings → Enrichment integration: stores configuration
- Contact UI → Access control: checks access
