PHP code example of spir / dotclear

1. Go to this page and download the library: Download spir/dotclear library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

spir / dotclear example snippets


$blogId = 'blog-id';
$url = 'http://myblog.com/xmlrpc/'.$blogId;
$username = 'username';
$password = 'password';

$client = new Spir\Dotclear\Client($url.$blodId, $username, $password, $blodId);

var_dump($client->getPosts(0));
var_dump($client->getCategories());
var_dump($client->getAuthors());