jawira / phing-visualizer
Graphical representation of Phing's buildfile
Installs: 1 932
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- ext-simplexml: *
- ext-xsl: *
- jawira/mini-getopt: ^0.0.2
- jawira/plantuml-encoding: ^1.0
Requires (Dev)
- behat/behat: ^3.5
- kamermans/command: ^1.2
- mikey179/vfsstream: ^1.6
This package is auto-updated.
Last update: 2021-08-22 06:24:16 UTC
README
Phing visualizer generates a graphical representation of your Phing's buildfile.
⚠️ Important:
phing-visualizer
has been ported to Phing asVisualizerTask
.
You can use<visualizer/>
task since Phing 3.0.0-alpha3.
With phing-visualizer You can go from this:
<?xml version="1.0" encoding="UTF-8"?> <project name="My Phing's buildfile" default="test"> <target name="test" depends="test:phpunit, test:composer"> <phingcall target="test:notify"/> </target> <target name="test:composer"> <composer> <arg line="validate --strict --no-check-lock"/> </composer> </target> <target name="test:phpunit"> <exec executable="${phpunit}"/> <phingcall target="test:clean"/> </target> <target name="test:notify"> <notifysend msg="Everything is OK!"/> </target> <target name="test:clean"> <delete dir="${dir.output}" verbose="true"/> </target> <target name="diagnostics"> <diagnostics/> </target> </project>
To this:
Phing visualizer is able to represent:
- Target's depends
- RunTargetTask
- PhingCallTask
- ForeachTask
Usage
Create your diagram using the command line, some examples:
$ vendor/bin/phing-visualizer
$ vendor/bin/phing-visualizer -i build.xml -f svg
$ vendor/bin/phing-visualizer --input /my/location/build.xml --format svg
$ vendor/bin/phing-visualizer -i /my/location/build.xml -f png -o /another/location/
Options
Option | Description | Default value |
---|---|---|
-i or --input |
Phing's buildfile location | build.xml |
-o or --output |
Dir or file location | Same as --input |
-f or --format |
Diagram format (png , svg , eps or puml ) |
png |
-h or --help |
Help |
Installing
$ composer require jawira/phing-visualizer
Requirements
- SimpleXML extension
- XSL extension
allow_url_fopen = On;
(onphp.ini
file)
More examples
Contributing
If you liked this project, ⭐ star it on GitHub.
License
This project is under the GNU GPLv3 license.
Packages from jawira
- jawira/phing-visualizer-gui (library)
- GUI for jawira/phing-visualizer.
- jawira/phing-open-task (library)
- Phing task to open files, directories, and URLs with your favorite software.
- jawira/process-maker (project)
- Easily install and try ProcessMaker using Docker Compose.
- more...