rough is software to embed macros in PHP code. Add a comment to your code, run the macro command, and rough generates code. The macros are not removed from the source code and can easily be updated. Currently, there are macros to generate get methods, generate set methods, and emulate traits in PHP 5.3.
Umple can be used for pure UML modeling. Or it can be used to add UML constructs, such as associations and state machines to code written in Java, PHP, or Ruby. It generates code in these languages that can save a large amount of programming effort and result in higher quality. The UmpleOnline tool allows you to edit UML diagrams graphically, and watch the Umple textual code being written in real time. This works the other way too: you can write textual Umple and watch the corresponding UML diagram appear. Umple is being extended to support patterns, tracing, and a variety of other features. Umple is written in itself, which is central to maintaining its quality. Umple can be used today by any programmer or modeler.