Is there a PHP generator framework or link?

Back in ASP and ColdFusion scripting, I worked on projects that would create code generators for ASP or Coldfusion, usually in C ++, to be more object oriented in application design and not have developers writing the script that was often called " spaghetti code "for its size and complexity.

Since I've been coding asp.net since 2000, I didn't have to figure out this issue at all since the platform is not scripted.

Perhaps I will be working on PHP projects in the future, and I was wondering if there are code generators for PHP or if there are good links for creating these generators. This would be for a Linux platform not designed for Win2008 servers running PHP.

+1


source to share


3 answers


I'm pretty skeptical about the merits of generating code in the context of a dynamic language like PHP. You can use other kinds of abstraction to get the same results. Unlike a statically typed, compiled language, it is fairly easy to use dynamic hooks like __get and __set and reflection to create generic abstract objects.



+1


source


Why not just create the right application in PHP instead of going through the hassle? Recent PHP is completely object oriented and allows you to do pretty decent things. There are even frameworks to help you do these things.



+2


source


It is better for you to learn good PHP development techniques than using code generators. PHP may be a scripting language, but it is quite powerful, has nice OO , lots of good frameworks and other open source packages.

It is a developer for building a well-designed and factorized codebase, whether compiled at runtime or not.

+1


source







All Articles