# shqear93/zoho-inventory-api architecture

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

- Interactive diagram: https://gitdiagram.com/shqear93/zoho-inventory-api
- Repository: https://github.com/shqear93/zoho-inventory-api

## Overview

This is a small PHP SDK whose ZohoClient exposes Inventory operations, including items and groups, purchase and sales orders, invoices, taxes, contacts, and inventory adjustments. The principal workflow is an application calling a client method, which builds an authenticated request and sends it to Zoho Inventory, returning the API response. The excerpt shows request dispatch and several resource methods, but not all client methods or the remainder of transport handling; documented resource branches are represented at the shared client path.

Main entry points: [`ZohoClient.php`](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php) (Zoho client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sdk["PHP SDK"]
  node_client["Zoho client<br/>[ZohoClient.php]"]
  node_auth["Auth parameters<br/>[ZohoClient.php]"]
  node_transport["cURL transport<br/>[ZohoClient.php]"]
end

subgraph group_inventory["Inventory API"]
  node_items["Items and groups<br/>[ZohoClient.php]"]
  node_purchasing["Purchase orders<br/>[ZohoClient.php]"]
  node_sales["Sales orders<br/>[ZohoClient.php]"]
  node_invoices["Invoices<br/>[ZohoClient.php]"]
  node_taxes["Taxes<br/>[ZohoClient.php]"]
  node_contacts["Contacts<br/>[ZohoClient.php]"]
  node_adjustments["Inventory adjustments<br/>[ZohoClient.php]"]
end

node_app(("PHP application"))
node_zoho{{"Zoho Inventory API"}}

node_app -->|"calls"| node_client
node_client -->|"provides methods"| node_items
node_client -->|"provides methods"| node_purchasing
node_client -->|"provides methods"| node_sales
node_client -->|"provides methods"| node_invoices
node_client -->|"provides methods"| node_taxes
node_client -->|"provides methods"| node_contacts
node_client -->|"provides methods"| node_adjustments
node_transport -.->|"uses"| node_auth
node_items -->|"dispatches"| node_transport
node_purchasing -->|"dispatches"| node_transport
node_sales -->|"dispatches"| node_transport
node_invoices -->|"dispatches"| node_transport
node_taxes -->|"dispatches"| node_transport
node_contacts -->|"dispatches"| node_transport
node_adjustments -.->|"dispatches"| node_transport
node_transport -->|"sends requests"| node_zoho

click node_client "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_auth "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_transport "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_items "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_purchasing "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_sales "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_invoices "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_taxes "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_contacts "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php"
click node_adjustments "https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.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_client,node_auth,node_transport toneBlue
class node_items,node_purchasing,node_sales,node_invoices,node_taxes,node_contacts,node_adjustments toneAmber
class node_app toneIndigo
class node_zoho toneMint
```

## Components

### PHP SDK

- [Zoho client](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Auth parameters](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [cURL transport](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`

### Inventory API

- [Items and groups](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Purchase orders](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Sales orders](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Invoices](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Taxes](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Contacts](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`
- [Inventory adjustments](https://github.com/shqear93/zoho-inventory-api/blob/master/ZohoClient.php): `ZohoClient.php`

### Other components

- **PHP application**
- **Zoho Inventory API**

## Connections

- PHP application → Zoho client: calls (evidence: `README.md`)
- Zoho client → Items and groups: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Purchase orders: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Sales orders: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Invoices: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Taxes: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Contacts: provides methods (evidence: `ZohoClient.php`)
- Zoho client → Inventory adjustments: provides methods (evidence: `ZohoClient.php`)
- cURL transport → Auth parameters: uses (evidence: `ZohoClient.php`)
- Items and groups → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Purchase orders → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Sales orders → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Invoices → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Taxes → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Contacts → cURL transport: dispatches (evidence: `ZohoClient.php`)
- Inventory adjustments → cURL transport: dispatches (evidence: `ZohoClient.php`)
- cURL transport → Zoho Inventory API: sends requests (evidence: `ZohoClient.php`)
