3 ms·
PHP frameworks are lame. Seriously. PHP is simple enough that you don't need a framework. None of the frameworks are very well maintained. All the framework
by citizenkeys 15y ago
PHP frameworks are lame. Seriously. PHP is simple enough that you don't need a framework. None of the frameworks are very well maintained. All the frameworks are more trouble than they're worth. Later on, you will end up spending more development time getting away from the framework than you did implementing it.
- johnny22 15y agoi think you'll have to back up your statement more than that. Symfony2 and other frameworks that require php 5.3 seem to be quite well maintained.
- citizenkeys 15y agoThe only thing a framework does is give you new functions to call existing PHP functions. That slows down everything down and results in shoddy junk code. In over 10 years of php development, I have yet to see a single real-world case where using a framework was better than just directly writing lean php code.
- tgriesser 15y agoReal world situation, you decide to move your database from mysql to postgresql because you're unhappy with something that oracle is doing and you want to move to a database that is completely free and open-source. Using a framework, you change the $config['driver'] from "mysql" to "postgres" and you're good to go. Without using a framework, you need to change every query your application makes. Good luck with that. If you don't have to do that because you standardized it yourself with a bunch of functions then you actually are using a framework, just one you made yourself rather than an open source one.
- gog 15y agoIsn't that what PHP does to C and C does to assembler?
- tgriesser 15y agoThe claim that PHP frameworks are not well maintained is completely unfounded. Are you going to seriously say that Zend, Codeigniter, Symphony are not maintained? The claim that they are more trouble than they are worth is also a common misconception. Yes, in some situations for very small projects, frameworks are probably unnecessary, but it really helps to not reinvent the wheel when it comes to security, form validation, database management, caching, and any of the other repetitive things that frameworks try to standardize. I'd recommend taking a look at Codeigniter, I've been using it in production for 2 years and have completely enjoyed it. It is very well documented easy to use, and flexible... and since it's been opened up to the community with the codeigniter-reactor branch there is much more development taking place. I've also started working some with FuelPHP http://fuelphp.com/ http://fuelphp.com/ which is a new framework but also very well documented and makes great use of the features php5.3 I wouldn't recommend CakePHP though. From what I've seen it is bloated and tries to do too much auto-magically (like rails) but fails to execute as well.