<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
indiana-university / iukb-api-doc-content-php example snippets
use Edu\Iu\Uits\KnowledgeBase\Document\ContentFactory;
$doc = $kb->getDocument('amyk');
$content = ContentFactory::create($doc->getContent());
echo $content->getBody();
use Edu\Iu\Uits\KnowledgeBase\Document\ContentFactory;
$doc = $kb->getDocument('amyk');
$content = ContentFactory::create($doc->getContent());
// If the hrefs are simply the doc id but need to be /help/docid
$content->rebaseKbLinks('', '/help/');
// If the links are full urls to the KB but need to be /help/docid
$content->rebaseKbLinks('https://kb.iu.edu/d/', '/help/');
use Edu\Iu\Uits\KnowledgeBase\Document\ContentFactory;
$doc = $kb->getDocument('amyk');
$content = ContentFactory::create($doc->getContent());
$content->rivetize();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.