This example gets the pad text and echos it out. <?php include 'etherpad-lite-client.php'; $instance = new EtherpadLiteClient(); $padContents = json_decode($instance->getText('test')); echo $padContents->data->text; ?>