pyrex-fwi / plantuml
Some plantuml poc
Installs: 8 283
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.15.0
- vimeo/psalm: ^4.3
This package is auto-updated.
Last update: 2024-12-05 22:47:18 UTC
README
This package allow WBS creation
Getting started
Install
composer req --dev pyrex-fwi/plantuml
Sample usages
Sample 1
#test-1.php <?php //create document $wbs = new WorkBreakdownStructure('RootNode'); //add subitems $wbs->addNode(new Node('Node A')); $wbs->addNode(new Node('Node B')); $wbs->addNode(new Node('Node C')); //get document as plantuml string echo $wbs->getDocumentContent();
php test-1.php > test-1.plantuml
#test-1.plantuml @startwbs <style> //... </style> * RootNode ** Node A ** Node B ** Node C @endwbs
Sample 2
#test-2.php <?php //create document $wbs = new WorkBreakdownStructure('RootNode'); //add subitems $nodes[] = new Node('Node A'); $nodes[] = new Node('Node B'); $nodes[] = new Node('Node C'); $nodes[1] ->addChild(new Node('Sub B.1')) ->addChild( (new Node('Sub B.B')) ->setToLeftPosition() ->setInlineColor('green') ) ->setInlineColor('lightgray') ; $wbs ->addChildrenNodes($nodes) ->getRootNode() ->setInlineColor('pink'); echo $wbs->getDocumentContent();
php test-2.php > test-2.plantuml
#test-2.plantuml @startwbs *[#pink] RootNode ** Node A **[#lightgray] Node B *** Sub B.1 ***[#green]< Sub B.B //#This part not work at 22/12/20 ** Node C @endwbs