PHP UML Generator
Switch branches/tags
Nothing to show
Clone or download
giorgiosironi Merge pull request #2 from wowo/fix/phpunit-xml-bootstrap
Fixed typo in phpunit (bootstrap option)
Latest commit 963ac4a Oct 11, 2012


PUG (PHP UML Generator) is a tool which generates an Uml class diagram from a live PHP object graph.
Up to now, it generates code for the yUML tool (, not directly pictures.

- Usage
require_once 'tests/bootstrap.php';

class SampleTest extends PHPUnit_Framework_TestCase
    public function testGenerationOfyUMLCode()
        $introspector = new UmlReflector\Introspector;
        $directives = new UmlReflector\Directives;
        $object = new stdClass; // substitute with your root object
        $introspector->visualize($object, $directives);
        // code for yUML