This repository provides a library for plantuml written in pure PHP.
http://doc.alvine.io/alvine.documentation.plantuml/
Download Library from http://download.alvine.io
wget http://download.alvine.io/alvine.documentation.plantuml-<version>.phar
wget http://download.alvine.io/alvine.documentation.plantuml-<version>.phar.pubkey
$path = new \Alvine\IO\File\Directory(__DIR__);
$generator = new \Alvine\Documentation\PlantUML\Generator($path);
echo (string) $generator->getClassDiagram();