<?php
use MBITEL\Confluence\EditorActions\CreatePageAction;
$cPager = new CreatePageAction($confluenceClient);
$cPager->createPage($rootPageId);
$cPager->setTextarea($html);
$cPager->setTitle($pageTitle);
$result = $cPager->save();
<?php
use MBITEL\Confluence\EditorActions\EditPageAction;
$editor = new EditPageAction($confluenceClient);
$editor->editPage($pageId);
$editor->setTextarea($html);
$editor->setTitle($pageTitle);
$result = $editor->save();
<?php
<?php
Wiki 2 HTML conversion
<?php
use MBITEL\Confluence\PageActions\WikiConverterAction;
$converter = new WikiConverterAction($client);
$html = $converter->wiki2html($wiki);
<?php
<?php
use MBITEL\Confluence\PageActions\AttachFileAction;
$files = array(
'path to file 1',
'path to file 2',
'path to file n',
'path to file n+1'
);
$uploader = new AttachFileAction($confluenceClient);
$uploader->attachFiles($pageId, $files);