# shinvdu/sevice_cms architecture

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

- Interactive diagram: https://gitdiagram.com/shinvdu/sevice_cms
- Repository: https://github.com/shinvdu/sevice_cms

## Overview

This is a PHP SDK for calling Drupal 7 Services 3.x over XML-RPC, with session authentication. The principal flow is a client using a resource wrapper (for example, Node) to issue an operation; Connector handles authentication, XML-RPC encoding, HTTP transport, and response decoding. The API surface also covers users, files, comments, taxonomy, and system variables, while ContentType provides a separate field/CSV mapping abstraction. Comment’s base class is named Service, but that class is absent from the tree; its connection to Connector is therefore not asserted.

Main entry points: [`Connector.php`](https://github.com/shinvdu/sevice_cms/blob/master/Connector.php) (RPC connector), [`run.php`](https://github.com/shinvdu/sevice_cms/blob/master/run.php) (Example request), [`Node.php`](https://github.com/shinvdu/sevice_cms/blob/master/Node.php) (Node operations), [`User.php`](https://github.com/shinvdu/sevice_cms/blob/master/User.php) (User operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Client entry"]
  node_example["Example request<br/>[run.php]"]
end

subgraph group_transport["RPC transport"]
  node_connector["RPC connector<br/>[Connector.php]"]
  node_methods["Method names<br/>[Methods.php]"]
end

subgraph group_resources["Drupal resources"]
  node_node["Node operations<br/>[Node.php]"]
  node_user["User operations<br/>[User.php]"]
  node_file["File operations<br/>[File.php]"]
  node_comment["Comment operations<br/>[Comment.php]"]
  node_taxonomy["Taxonomy operations<br/>[Taxonomy.php]"]
  node_system["System variables<br/>[System.php]"]
end

subgraph group_mapping["Content mapping"]
  node_contenttype["Content type mapping<br/>[ContentType.php]"]
end

node_client(("SDK client"))
node_drupal["Drupal Services"]

node_client -->|"runs example"| node_example
node_example -->|"loads node"| node_node
node_node -->|"sends requests"| node_connector
node_user -->|"sends requests"| node_connector
node_file -->|"sends requests"| node_connector
node_taxonomy -->|"sends requests"| node_connector
node_system -->|"sends requests"| node_connector
node_connector -->|"uses names"| node_methods
node_connector -->|"sends XML-RPC"| node_drupal
node_drupal -->|"returns response"| node_connector

click node_example "https://github.com/shinvdu/sevice_cms/blob/master/run.php"
click node_node "https://github.com/shinvdu/sevice_cms/blob/master/Node.php"
click node_user "https://github.com/shinvdu/sevice_cms/blob/master/User.php"
click node_file "https://github.com/shinvdu/sevice_cms/blob/master/File.php"
click node_comment "https://github.com/shinvdu/sevice_cms/blob/master/Comment.php"
click node_taxonomy "https://github.com/shinvdu/sevice_cms/blob/master/Taxonomy.php"
click node_system "https://github.com/shinvdu/sevice_cms/blob/master/System.php"
click node_connector "https://github.com/shinvdu/sevice_cms/blob/master/Connector.php"
click node_methods "https://github.com/shinvdu/sevice_cms/blob/master/Methods.php"
click node_contenttype "https://github.com/shinvdu/sevice_cms/blob/master/ContentType/ContentType.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_example,node_client toneBlue
class node_connector,node_methods toneAmber
class node_node,node_user,node_file,node_comment,node_taxonomy,node_system toneMint
class node_contenttype toneRose
class node_drupal toneIndigo
```

## Components

### Client entry

- [Example request](https://github.com/shinvdu/sevice_cms/blob/master/run.php): `run.php`

### RPC transport

- [RPC connector](https://github.com/shinvdu/sevice_cms/blob/master/Connector.php): `Connector.php`
- [Method names](https://github.com/shinvdu/sevice_cms/blob/master/Methods.php): `Methods.php`

### Drupal resources

- [Node operations](https://github.com/shinvdu/sevice_cms/blob/master/Node.php): `Node.php`
- [User operations](https://github.com/shinvdu/sevice_cms/blob/master/User.php): `User.php`
- [File operations](https://github.com/shinvdu/sevice_cms/blob/master/File.php): `File.php`
- [Comment operations](https://github.com/shinvdu/sevice_cms/blob/master/Comment.php): `Comment.php`
- [Taxonomy operations](https://github.com/shinvdu/sevice_cms/blob/master/Taxonomy.php): `Taxonomy.php`
- [System variables](https://github.com/shinvdu/sevice_cms/blob/master/System.php): `System.php`

### Content mapping

- [Content type mapping](https://github.com/shinvdu/sevice_cms/blob/master/ContentType/ContentType.php): `ContentType/ContentType.php`

### Other components

- **SDK client**
- **Drupal Services**

## Connections

- SDK client → Example request: runs example (evidence: `run.php`)
- Example request → Node operations: loads node (evidence: `run.php`)
- Node operations → RPC connector: sends requests (evidence: `Node.php`)
- User operations → RPC connector: sends requests (evidence: `User.php`)
- File operations → RPC connector: sends requests (evidence: `File.php`)
- Taxonomy operations → RPC connector: sends requests (evidence: `Taxonomy.php`)
- System variables → RPC connector: sends requests (evidence: `System.php`)
- RPC connector → Method names: uses names (evidence: `Connector.php`)
- RPC connector → Drupal Services: sends XML-RPC (evidence: `Connector.php`)
- Drupal Services → RPC connector: returns response (evidence: `Connector.php`)
