开发者

PHP & MySQL code generation from UML

开发者 https://www.devze.com 2022-12-22 11:56 出处:网络
Is there an Eclipse plug-in that will allow me to graphically generate a data model, and produce from it a MySQL Database Scr开发者_JAVA百科ipt for generation of that database, and generate PHP code f

Is there an Eclipse plug-in that will allow me to graphically generate a data model, and produce from it a MySQL Database Scr开发者_JAVA百科ipt for generation of that database, and generate PHP code for simple add/change/delete methods?

This way I can focus on programming the business logic, instead of fussing with the details of the SQL code.


You should use what is called a framework or ORM. Kohana is a good one, as is codeIgniter, and Doctrine. You can specify your data models in one location and have the DB and code generated. I'm not sure about generating it from a UML model tho.


You can use this UMLtoPHP online generation service that can take as input a UML Eclipse class diagram and generate the corresponding doctrine file for you. With that you can easily generate a full CRUD php application using, for instance, symfony

0

精彩评论

暂无评论...
验证码 换一张
取 消