PHP SDK that allows you to access the PostEase Classic located remotely from your PHP app. This PHP SDK "PecRpc" is technically based on XML-RPC.
The PostEase Classic PHP SDK can be installed with Composer. Run this command:
composer require postease-classic/sdk-rpcOr simply download the component from this page and unzip it.
Upload the PecRpc directly below the src to the appropriate location manually.
Note: PostEase Classic SDK for PHP requires PHP 5.1 or greater.
Simple example to get all posts.
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed
$pe = new \PecRpc\Pec();
$posts = $pe->get_posts();
print_r($posts);/*
* If you set your environment like this for example..
*
* root
* |
* |-- PecRpc
* |
* |-- index.php
*
*/
require_once __DIR__ . '/PecRpc/Pec.php'; // change path as needed
$pe = new Pec();
$posts = $pe->get_posts();
print_r($posts);Complete documentation, installation instructions, and examples are available here.