Tibula plugin


Tibula could be also used as a plugin to existing frameworks.

To use into your own php pages just include http://media.tibula.net/tibulApi, call tibulaSetUrl(url) with the full Tibula running daemon url, then call tibula(id) as many time as you need to populate your page.

Calling tibula(id) with a valid id will return only the outer xhtml for the selected id, calling without arguments will return the full page.

The first tibula() call will populate $ejaDom that will contain the full tibula xml dom.

If you don't set a valid tibula url it will point by default to




if (include("tibulApi.php")) {


} else {

 exit("tibulApi missing...";


print tibula("ejaPage");