This extension for StarUML(http://staruml.io) support to generate PHP code from UML model. Install this extension from Extension Manager of StarUML.
Based on https://github.com/staruml/staruml-java
Tools > PHP > Generate Code...
)Belows are the rules to convert from UML model elements to PHP source codes.
.php
file)visibility
to one of modifiers public
, protected
, private
and none.isAbstract
property to abstract
modifier.visibility
property to one of modifiers public
, protected
, private
and none.name
property to field identifier.multiplicity
property to array type.isStatic
property to static
modifier.defaultValue
property to initial value.visibility
property to one of modifiers public
, protected
, private
and none.name
property to method identifier.isAbstract
property to abstract
modifier.isStatic
property to static
modifier..php
file)visibility
property to one of modifiers public
, protected
, private
and none..php
file)visibility
property to one of modifiers public
, protected
, private
and none.visibility
property to one of modifiers public
, protected
, private
and none.name
property to field identifier.defaultValue
property to initial value.extends
).implements
).Licensed under the MIT license (see LICENSE file).