Converts php source code to GNU-Dia diagrams
PHP HTML Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
doc
src/PhpDia
.gitignore
.travis.yml
Makefile
README.md
composer.json
composer.lock
phpdia.php
phpunit.xml.dist

README.md

PHP-Dia Build Status

Simple PHP Application used to parse php source code files and generate GNU-Dia class diagram files.

Requirements

  • php 7.1.x (It will run with 7.x in the future)

Installation

This installation is system-wide.

    make
    sudo make install

You can remove phpdia from your system with sudo make uninstall

Testing

make test

Usage:

$ phpdia --help

Usage:
  phpdia [options] [--] <source>

Arguments:
  source                   The directory containing the PHP source code.

Options:
  -e, --exclude[=EXCLUDE]  Comma separated list of dir/files to exclude.
  -o, --output[=OUTPUT]    Output path for diagram file. [default: "/mnt/development/Development/php/hb-website/src/app/Models/diagram.dia"]
  -c, --confirm            Confirm the file list before parse.
  -r, --raw                Disable file compression
  -d, --debug              Enable debug output.
  -h, --help               Display this help message
  -q, --quiet              Do not output any message
  -V, --version            Display this application version
      --ansi               Force ANSI output
      --no-ansi            Disable ANSI output
  -n, --no-interaction     Do not ask any interactive question
  -v|vv|vvv, --verbose     Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  Creates GNU/Dia UML diagrams from PHP source code.

Example

Generate a diagram from this application

$ phpdia src/

Parsing 47 files found in src/...

 47/47 -- [======================================================================]
 100% All files parsed.

Finished, file saved.

$ dia diagram.dia

Diagram file in GNU/Dia

Diagram file in GNU/Dia