DokuWiki registers its own autoloader early on in inc/load.php. When developing plugins you nearly never need to require any other files yourself.
If you need additional classes, simply use the appropriate namespace as outlined below.
When plugins have a
vendor/autoload.php file it is automatically
required by DokuWiki's autoloader. No need do that yourself anymore.
Because of DokuWiki's long history, most core files are not namespaced. Newer components however are.
DokuWiki registers the following namespaces for autoloading:
\dokuwiki\- classes and subnamespaces are loaded from
\dokuwiki\test- used with unittesting, classes and subnamespaces are loaded from
\dokuwiki\test\mock- used with unittesting, classes and subnamespaces are loaded from
\dokuwiki\plugin\- classes are loaded from
\dokuwiki\plugin\*\test\- classes are loaded from
\dokuwiki\template\- classes are loaded from
\dokuwiki\template\*\test\- classes are loaded from