Download the PHP package mk-conn/plant2code without Composer
On this page you can find all versions of the php package mk-conn/plant2code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mk-conn/plant2code
More information about mk-conn/plant2code
Files in mk-conn/plant2code
Package plant2code
Short Description Create basic code (classes, interfaces, etc.) from PlantUML class diagrams
License proprietary
Informations about the package plant2code
Plant2Code
Plant2Code can be used to generate (currently only PHP) classes from your plantuml class diagramm. It converts the plantuml class diagramm into XMI and creates the target language class files based on the XMI declarations.
Requirements
- current Java RE (on Mac the JDK is required) - don't know about Windows systems, I didn't and will not test there.
- PHP >= 7.x
- Composer
Installation
Global
Install:
Update:
Somewhere in a folder of your choise
Clone or download this repository. Run composer install --no-dev
from the root directory (omit the --no-dev option, if you intend
to develop in this project). Done.
Within a project
In your composer.json:
Running
From global
- --output Optional output directory (must exists) where classes are written to. Defaults to the folder where the *.puml input files is stored.
- --lang: Optional target language - defaults to PHP
- --root-ns: Optional root namespace - this will be prepend to the detected namespaces
From project directoy
Output
Success:
Failure:
Tips
Although it is possible to write class properties and methods like this in plantuml:
the required syntax for plant2code to work correctly is:
Features not yet implemented
- option to format code output
- more languages (Java, Ruby, JavaScript)
Thanks
Thanks goes out to the plantuml developers who let me use the binary plantuml.jar which is distributed under LGPL. And another big thanks to the developers who implemented my suggestions and wishes in no time very quick!
All versions of plant2code with dependencies
illuminate/filesystem Version 5.3.*
illuminate/support Version 5.3.*
twig/twig Version 1.9.*
symfony/console Version 3.2.*