The no-framework PHP MVC framework

“The no-framework PHP MVC framework”
http://toys.lerdorf.com/index.php?url=archives/38-The-no-framework-PHP-MVC-framework.html

Yuck! What spaghetti code. I can’t ever imagine preferring that to
Rails.

Joe

haha… yeah I saw that. I am rather fond of my simple 3 class
framework… since I can’t use RoR at work… this at least doesn’t
make me insane :slight_smile: … the idea hit me while I was thinking of RoR. (My
goal not being to make a PHP framework to replace RoR, so don’t flame
me! I’m looking for a RoR job!)

Stupidly Easy MVC in PHP App Walkthough

Original two articles:

Stupidly Easy MVC in PHP or We Don’t Need No Stinkin’ Framework

On 3/1/06, Joe [email protected] wrote:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


http://PhpGirl.blogger.com

Realize that the author of that article is Rasmus Lerdorf himself, the
creator of PHP (their DHH). Somebody please wrap up a Rails
equivalent to show him how it’s DONE. I’d do it myself but my weblog
is on hiatus and I’m up to my neck in work already (which is keeping
the weblog on hiatus).

His code kind of scares me; it’s roughly equivalent of what NEWBIES
produce, and this from the guy who created the language. Guess it kind
of explains why PHP is such a mess to begin with, huh?

Regards,
Tomas J.

Tomas J. wrote:

Realize that the author of that article is Rasmus Lerdorf himself, the
creator of PHP (their DHH). Somebody please wrap up a Rails
equivalent to show him how it’s DONE. I’d do it myself but my weblog
is on hiatus and I’m up to my neck in work already (which is keeping
the weblog on hiatus).

His code kind of scares me; it’s roughly equivalent of what NEWBIES
produce, and this from the guy who created the language. Guess it kind
of explains why PHP is such a mess to begin with, huh?

Regards,
Tomas J.

Oh I know who Rasmus is and without him PHP would be much worse off. But
his whole post reeks of trying to bang a square peg into a round whole
and trying to “prove” that an old dog can learn new tricks and doesn’t
need no stinkin’ fancy frameworks. Ugh, it’s just the “use the same tool
for everything” mentality that PHPers seem to have. I also think Rasmus
and many other PHPers throw out bones like this to the PHP community,
but they themselves don’t build businesses around it, unlike a lot of
Railers.

Joe

Greg D. wrote:

On 3/2/06, Joe [email protected] wrote:

Oh I know who Rasmus is and without him PHP would be much worse off.

If by ‘much worse off’ you mean ‘not invented’ then yes.

Yup, that too.

Joe

On 3/2/06, Joe [email protected] wrote:

Oh I know who Rasmus is and without him PHP would be much worse off.

If by ‘much worse off’ you mean ‘not invented’ then yes.


Greg D.
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/

From “The no-framework PHP MVC framework”:

Clean separation of your views, controller logic and backend model logic
is

easy to do with PHP. Using these ideas, you should be able to build a clean
framework aimed specifically at your requirements instead of trying to
refactor a much larger and more complex external framework.

For myself, at least, I didn’t come to Rails because I wanted a
framework. I
wanted a object-oriented Web development language (Ruby) and found
Rails
to be a fantastic implementation.

The way I read the history of PHP [1], I believe it was originally a C
framework that morphed into a language.

At any rate, I’m not sure I understand the terms perfectly, but I
wouldn’t
think Rasmus’ controller would qualify for that label. But it looks like
this is already being debated on that page’s comments track…

– Joshua

*1:
http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html

I have a friend who has been working on a PHP MVC framework for a few
years. I belive he is launching the open source project very shortly at

I’ve seen his code and it is VERY clean. He is a big fan of Rails now,
although he still does all his work in his framework. He added an extra
layer to the stack that Rails doesn’t have, either.

Rather than Presentation Layer, Business Logic Layer, Data Layer, he has
a Service Layer sitting above Business Logic.

I would recommend checking it out once it is ready.