
Thursday 23 February 2012
php framworks !! why , when and which ?
From w3schools.inWhat are the benefits of using MVC PHP frameworks ?
Well there are many benefits of using PHP frameworks, let’s see some of the main benefits of using them.
- They PHP frameworks follows some design pattern, so when you use these framework you’ve to follow their coding convention which makes your code clean and extensible for future purpose.
- The Popular PHP frameworks like CakePHP, CodeIgniter, Zend Framework ,Symfony follows Model View Controller(MVC) design pattern which separates business logic from user interface making the code cleaner and extensible.
- As everybody can guess, these frameworks contains a lot of libraries to make your job easier. For example, to validate a from you don’t have write much code as you’ve to in normal coding scenario, just few lines of code calling the library might be enough for it.
- While working on a large project in a team, these MVC PHP framework will be a great tool for development as you can assign a developer to develop MVC part of a module for a developer and integration will be quite easy of these developed module at final level.
- These MVC framework will really helps you to develop the project rapidly, if you know one framework well then you’ll never worry about the project deadline.
- Most of these MVC frameworks uses clear URL approach making your web project SEO friendly.
Furthermore, if you want charge money to visitors who download or access content of your website then this software is highly useful.
What are disadvantage of using MVC PHP frameworks?
A coin has two parts similarly a bright stuff always have dark part as well .
- Different framework have different coding convention, Depending upon the the framework, you’ll have to learn coding convention for the framework you want to follow. So depending upon the framework, it might to struggle at the beginning.
- While coding using these framework, sometime you’ll not find any library or helpers which might be useful for you so you’ll have to struggle bit at that time.
- If you don’t have OOP experience then PHP MVC framework are not you. First build a solid knowledge of OOP with PHP then only think about choosing any framework.
- PHP frameworks are not for the small projects from my point of view, because in a very simple project custom coding will work faster than setting up a framework.
Which framework should I choose?
This is the one of the most discussed question about the PHP frameworks. So it depends upon particular person and project which framework will best suit for you. But depending upon my experience, I can show you some way to choose the framework.
- If you’re just want to use MVC framework for your next project, then I suggest you to go for CodeIgniter. It is very easy to learn and well-documented.Furthermore, it’s very flexible because it is not so strict on naming conventions etc. Furthermore, Model is optional while coding in codeIgniter so it is not necessary to use model for each controllers.
- If you’re coding architecture savvy, then I suggest you to go with CakePHP, probably the most popular PHP framework but I must admit. This framework’s coding style is similar to Ruby on Rails and naming conventions are strict in this framework.So if you’re working on a huge project in a team then this project will be the right choice for you.
- If you’ve to use a lot web services external APIs in your project then Zend Framework will be right choice for you, it contains huge libraries for external APIs compared to any other PHP MVC framework. The main benefits of this framework is that you can use them as components(without using MVC) in your project or you can follow Zend framework’s MVC architecture to develop your project. The other benefits of this framework is that you can use it inside any of the above two MVC frameworks.
|
This page was last modified on 09 Sep 2010 at 22:48:30. |
Gautam Kumar EDP Manager |
Related Posts
» Useful functions to tighten the security in PHP» CodeIgniter A recommendation for PHP Programmer
» PHP Framworks Why when and which
» Solving Floating point number precision lost problem in PHP
» Handling array of HTML Form Elements in JavaScript and PHP
» How to filter user submitted data easily in PHP
» Prevent form post request from another domain in PHP
» Flaw in and or logical operator php
» Default arguments functions php
» Submit Form without Refreshing Page with Jquery
» MySQL Performance Tips
» Free ajax chat applications in PHP
» Return More Than One Value From a Function in PHP
» PHP Optimization Tips
» PHP Error Handling
» Useful PHP Classes and Libraries
» Useful Tools For PHP Developers
» PHP Frameworks
» Web based HTML Editors
» 301 redirect in PHP and .htaccess
» Hiding PHP file extension
» Rredirect Browser HTTPS SSL PHP
» Tighten php security functions
» PHP Framworks
