Are you saying you want to compile it from source, or are you unaware that there's binaries available?
https://github.com/feenkcom/pdt2famix > pdt2famix takes PHP code and produces MSE files that can be imported into Glamorous Toolkit.
There's something called Gtoolkit, I think? I had to install NetBeans to get some plugin, to get one of these tools to work, then the plugin had some other requirements. It definitely wasn't just running their binary. It was a nightmare.
But you have to keep everything in the top directory and copy that around not the .app
It is not packaged as a Mac Application that is all in a .app file which you can copy to /Applications. Most of the other files should be in ~/Application Support or ~/Documents to meet normal macOS directories.