Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added short README

  • Loading branch information...
commit 6f9d380f9e9a44651a6453d12540b86fd2833f07 1 parent 3c8f0cd
Giorgio Sironi authored

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. 19  README.txt
19  README.txt
... ...
@@ -0,0 +1,19 @@
  1
+PUG (PHP UML Generator) is a tool which generates an Uml class diagram from a live PHP object graph.
  2
+Up to now, it generates code for the yUML tool (yuml.me), not directly pictures.
  3
+
  4
+- Usage
  5
+<?php
  6
+require_once 'tests/bootstrap.php';
  7
+
  8
+class SampleTest extends PHPUnit_Framework_TestCase
  9
+{
  10
+    public function testGenerationOfyUMLCode()
  11
+    {
  12
+        $introspector = new UmlReflector\Introspector;
  13
+        $directives = new UmlReflector\Directives;
  14
+        $object = new stdClass; // substitute with your root object
  15
+        $introspector->visualize($object, $directives);
  16
+        // code for yUML
  17
+        var_dump($directives->toString());
  18
+    }
  19
+}

0 notes on commit 6f9d380

Please sign in to comment.
Something went wrong with that request. Please try again.