Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Andy Inman on
As it says on the Code Server project page ...
Allows limitless communication between Drupal sites.
Code Server provides a framework for calling PHP functions on a Drupal site from code running on a different Drupal site.
Applications include:
- Synchronising data (content, users, etc.) between two or more sites.
- Synchronising files (attachments and uploads, etc.) between local development machines and remote (e.g. Pantheon hosted) development site.
- Running arbitrary tests without needing any specific supporting code installed on the remote site.
- More!
Example:
// Load a node from the remote site.
$node = $remote->node_load($nid);
// Save the node on the local site.
node_save($node);
Comments
Code Server beta-3
Beta-3 version now available.
Code Server drush integration
Now includes drush integration.