27 points · by asika32764 · 11y ago · 27 comments
This seems like the worst of all worlds.
It isn't though. PHP is many things but overly verbose isn't one of them * . Although there does seem to be a drive by some developers to make PHP look and act as much like Java as possible. Maybe this comes from discomfort at PHP not being structured or strict enough out of the box for their liking. If you've only ever dealt with well-engineered languages which have a certain, coherent set of patterns and paradigms baked in, and which demand you write your code a certain way, and you approach PHP, you're going to have a problem.
I don't know why a tool like this would be useful, but it wouldn't be because of the language. PHP exposes its own token parser - you can generate PHP code with much less abstraction than this.
*classes like IteratorIterator aside...
This framework would not solve a single problem I have had. None of the frameworks do, which is why I'm not using one of them. The only thing I really found lacking in core PHP was a way to manage the urls. (In this case, query strings.) I believe this would have been difficult on any platform, as the data is deeply hierarchical so the urls would be gnarly no matter what. So I wrote a class that understands the entity hierarchy and can generate query string sets that are needed for each level in the scope.
I wish the PHP community would spend less effort trying to be rails and more effort on simply removing pain points of basic, idiomatic PHP development.