xmi2symfony 0.1: convert UML models to code skeletons for the symfony framework

I wrote a small application that converts UML models in the XMI format to configuration files for applications based on the symfony framework. It is licensed under the LGPL v2.

The following elements are generated from the UML models:

  • Skeletons for classes (lib/model/*.php)
    • Skeletons for custom operations (with the following properites: name, visibility (public, private, protected), static (yes/no))
    • Parameters for custom operations
    • Documentation skeletons for:
      • Classes
      • Custom operations
      • Operation parameters
      • Return types
  • Database schema (config/schema.yml)
    • PHP datatypes are mapped to SQL datatypes (ex. string->varchar(255), int->integer, …)
    • An ‘id’ field is generated for every class (this is not a very good solution)
    • Associations with 1:* multiplicity are converted to attributes
    • Associations with *:* multiplicity are converted to association classes
    • UML datatypes are mapped to the corresponding “foreign-table” notation

This is work in progress! The code base is currently in an early alpha stage. Not everything works completely fine yet and features and functionality are subject to change.

You can download the code here.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • Slashdot
  • Technorati
  • StumbleUpon

Leave a Reply