How shinvdu/sevice_cms works
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 RPC connector · run.php Example request · Node.php Node operations · User.php User operations
Components 12
Client entry
- Example request
run.php
RPC transport
- RPC connector
Connector.php - Method names
Methods.php
Drupal resources
- Node operations
Node.php - User operations
User.php - File operations
File.php - Comment operations
Comment.php - Taxonomy operations
Taxonomy.php - System variables
System.php
Content mapping
- Content type mapping
ContentType/ContentType.php
Other components
- SDK client
- Drupal Services
Connections 10
- SDK client → Example request: runs example
run.php - Example request → Node operations: loads node
run.php - Node operations → RPC connector: sends requests
Node.php - User operations → RPC connector: sends requests
User.php - File operations → RPC connector: sends requests
File.php - Taxonomy operations → RPC connector: sends requests
Taxonomy.php - System variables → RPC connector: sends requests
System.php - RPC connector → Method names: uses names
Connector.php - RPC connector → Drupal Services: sends XML-RPC
Connector.php - Drupal Services → RPC connector: returns response
Connector.php