# mohammedayad1/itop architecture

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

- Interactive diagram: https://gitdiagram.com/mohammedayad1/itop
- Repository: https://github.com/mohammedayad1/itop

## Overview

iTop is a web-based IT service management platform. Users work with service and configuration records through the web UI; the platform models and queries those records and presents results. The README also documents import, audit, synchronization, impact analysis, SLA, and change-management capabilities. Paths identify implementations from the tree, but most domain internals were not sampled, so capability links rely on README statements rather than inspected call paths.

Main entry points: [`sources/Application/TwigBase/Controller/Controller.php`](https://github.com/mohammedayad1/itop/blob/develop/sources/Application/TwigBase/Controller/Controller.php) (Web controller), [`sources/Controller/AjaxRenderController.php`](https://github.com/mohammedayad1/itop/blob/develop/sources/Controller/AjaxRenderController.php) (AJAX endpoints), [`core/cmdbobject.class.inc.php`](https://github.com/mohammedayad1/itop/blob/develop/core/cmdbobject.class.inc.php) (CMDB records), [`core/dbobjectsearch.class.php`](https://github.com/mohammedayad1/itop/blob/develop/core/dbobjectsearch.class.php) (Object queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_controller["Web controller<br/>[Controller.php]"]
  node_ajax["AJAX endpoints"]
  node_page["Page rendering<br/>[WebPage.php]"]
  node_ui["UI components"]
end

subgraph group_model["CMDB and services"]
  node_cmdb["CMDB records"]
  node_query["Object queries"]
  node_service["Service management"]
  node_provider["Service provider"]
  node_storage["Storage management"]
  node_sla["SLA management"]
  node_change["Change management"]
  node_impact["Impact analysis"]
end

subgraph group_operations["Data operations"]
  node_import["CSV import"]
  node_export["Bulk export"]
  node_audit["Data audit"]
  node_sync["Data synchronization"]
end

subgraph group_platform["Runtime foundation"]
  node_database[("Database access")]
  node_auth["Authentication"]
end

node_user(("IT operator"))

node_user -->|"uses portal"| node_controller
node_controller -->|"renders pages"| node_page
node_controller -.->|"builds UI"| node_ui
node_user -.->|"requests data"| node_ajax
node_ajax -->|"runs searches"| node_query
node_query -.->|"searches records"| node_cmdb
node_cmdb -.->|"persists records"| node_database
node_controller -->|"checks access"| node_auth
node_user -->|"manages services"| node_service
node_user -->|"manages contracts"| node_provider
node_user -.->|"manages storage"| node_storage
node_user -->|"configures SLAs"| node_sla
node_user -->|"manages changes"| node_change
node_user -->|"analyzes impact"| node_impact
node_user -->|"imports data"| node_import
node_user -.->|"exports data"| node_export
node_user -->|"checks quality"| node_audit
node_user -->|"federates data"| node_sync

click node_controller "https://github.com/mohammedayad1/itop/blob/develop/sources/Application/TwigBase/Controller/Controller.php"
click node_ajax "https://github.com/mohammedayad1/itop/blob/develop/sources/Controller/AjaxRenderController.php"
click node_page "https://github.com/mohammedayad1/itop/blob/develop/sources/Application/WebPage/WebPage.php"
click node_ui "https://github.com/mohammedayad1/itop/tree/develop/sources/Application/UI/Base"
click node_cmdb "https://github.com/mohammedayad1/itop/blob/develop/core/cmdbobject.class.inc.php"
click node_query "https://github.com/mohammedayad1/itop/blob/develop/core/dbobjectsearch.class.php"
click node_service "https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php"
click node_provider "https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt-provider/main.itop-service-mgmt-provider.php"
click node_storage "https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-storage-mgmt/module.itop-storage-mgmt.php"
click node_sla "https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php"
click node_change "https://github.com/mohammedayad1/itop/blob/develop/core/cmdbchange.class.inc.php"
click node_impact "https://github.com/mohammedayad1/itop/blob/develop/core/relationgraph.class.inc.php"
click node_import "https://github.com/mohammedayad1/itop/blob/develop/core/csvparser.class.inc.php"
click node_export "https://github.com/mohammedayad1/itop/blob/develop/core/bulkexport.class.inc.php"
click node_audit "https://github.com/mohammedayad1/itop/blob/develop/application/audit.rule.class.inc.php"
click node_sync "https://github.com/mohammedayad1/itop/blob/develop/core/cmdbsource.class.inc.php"
click node_database "https://github.com/mohammedayad1/itop/blob/develop/core/DbConnectionWrapper.php"
click node_auth "https://github.com/mohammedayad1/itop/blob/develop/application/loginbasic.class.inc.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_controller,node_ajax,node_page,node_ui toneBlue
class node_cmdb,node_query,node_service,node_provider,node_storage,node_sla,node_change,node_impact toneAmber
class node_import,node_export,node_audit,node_sync toneMint
class node_database,node_auth toneRose
class node_user toneIndigo
```

## Components

### Web experience

- [Web controller](https://github.com/mohammedayad1/itop/blob/develop/sources/Application/TwigBase/Controller/Controller.php): `sources/Application/TwigBase/Controller/Controller.php`
- [AJAX endpoints](https://github.com/mohammedayad1/itop/blob/develop/sources/Controller/AjaxRenderController.php): `sources/Controller/AjaxRenderController.php`
- [Page rendering](https://github.com/mohammedayad1/itop/blob/develop/sources/Application/WebPage/WebPage.php): `sources/Application/WebPage/WebPage.php`
- [UI components](https://github.com/mohammedayad1/itop/tree/develop/sources/Application/UI/Base): `sources/Application/UI/Base`

### CMDB and services

- [CMDB records](https://github.com/mohammedayad1/itop/blob/develop/core/cmdbobject.class.inc.php): `core/cmdbobject.class.inc.php`
- [Object queries](https://github.com/mohammedayad1/itop/blob/develop/core/dbobjectsearch.class.php): `core/dbobjectsearch.class.php`
- [Service management](https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php): `datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php`
- [Service provider](https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt-provider/main.itop-service-mgmt-provider.php): `datamodels/2.x/itop-service-mgmt-provider/main.itop-service-mgmt-provider.php`
- [Storage management](https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-storage-mgmt/module.itop-storage-mgmt.php): `datamodels/2.x/itop-storage-mgmt/module.itop-storage-mgmt.php`
- [SLA management](https://github.com/mohammedayad1/itop/blob/develop/datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php): `datamodels/2.x/itop-service-mgmt/main.itop-service-mgmt.php`
- [Change management](https://github.com/mohammedayad1/itop/blob/develop/core/cmdbchange.class.inc.php): `core/cmdbchange.class.inc.php`
- [Impact analysis](https://github.com/mohammedayad1/itop/blob/develop/core/relationgraph.class.inc.php): `core/relationgraph.class.inc.php`

### Data operations

- [CSV import](https://github.com/mohammedayad1/itop/blob/develop/core/csvparser.class.inc.php): `core/csvparser.class.inc.php`
- [Bulk export](https://github.com/mohammedayad1/itop/blob/develop/core/bulkexport.class.inc.php): `core/bulkexport.class.inc.php`
- [Data audit](https://github.com/mohammedayad1/itop/blob/develop/application/audit.rule.class.inc.php): `application/audit.rule.class.inc.php`
- [Data synchronization](https://github.com/mohammedayad1/itop/blob/develop/core/cmdbsource.class.inc.php): `core/cmdbsource.class.inc.php`

### Runtime foundation

- [Database access](https://github.com/mohammedayad1/itop/blob/develop/core/DbConnectionWrapper.php): `core/DbConnectionWrapper.php`
- [Authentication](https://github.com/mohammedayad1/itop/blob/develop/application/loginbasic.class.inc.php): `application/loginbasic.class.inc.php`

### Other components

- **IT operator**

## Connections

- IT operator → Web controller: uses portal (evidence: `README.md`)
- Web controller → Page rendering: renders pages (evidence: `sources/Application/TwigBase/Controller/Controller.php`)
- Web controller → UI components: builds UI (evidence: `sources/Application/TwigBase/Controller/Controller.php`)
- IT operator → AJAX endpoints: requests data
- AJAX endpoints → Object queries: runs searches (evidence: `sources/Controller/AjaxRenderController.php`)
- Object queries → CMDB records: searches records
- CMDB records → Database access: persists records
- Web controller → Authentication: checks access (evidence: `sources/Application/TwigBase/Controller/Controller.php`)
- IT operator → Service management: manages services (evidence: `README.md`)
- IT operator → Service provider: manages contracts (evidence: `README.md`)
- IT operator → Storage management: manages storage
- IT operator → SLA management: configures SLAs (evidence: `README.md`)
- IT operator → Change management: manages changes (evidence: `README.md`)
- IT operator → Impact analysis: analyzes impact (evidence: `README.md`)
- IT operator → CSV import: imports data (evidence: `README.md`)
- IT operator → Bulk export: exports data
- IT operator → Data audit: checks quality (evidence: `README.md`)
- IT operator → Data synchronization: federates data (evidence: `README.md`)
