Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP UML Generator

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 library
Octocat-spinner-32 tests
Octocat-spinner-32 README.txt
Octocat-spinner-32 TODO.txt
README.txt
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 (yuml.me), not directly pictures.

- Usage
<?php
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
        var_dump($directives->toString());
    }
}
Something went wrong with that request. Please try again.