The MindTouch API PHP Client is a PHP library for interacting with the MindTouch REST API.
This Library is provided for and supported by the open source community. Supported MindTouch site owners may file bug reports via GitHub, but support plans do not cover the usage of this library.
Use Composer. Add mindtouch/mindtouch-api-php-client to your project's composer.json:
{
"require": {
"mindtouch/mindTouch-api-php-client": "dev-master"
}
}A quick example:
<?php
$Plug = ApiPlug::newPlug('http://mysite.mindtouch.us/@api/deki');
$Result = $Plug->at('pages', 'home', 'contents')->get();
if($Result->isSuccess()) {
// great job!
echo $Result->getVal('body/contents');
}Read the MindTouch API PHP Client documentation for more information.