Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To Use a PHP Framework or Not? [closed]

I've started writing a few applications in PHP, and I'm becoming more familiar with the language. Someone told me about CakePHP, and CodeIgniter. I wanted to get a better understanding of how these could help me, and whether it's worthwhile spending the time to learn a framework?

like image 241
Jonathan Lyon Avatar asked May 03 '09 13:05

Jonathan Lyon


People also ask

Should you use a PHP framework?

Using a PHP framework will help make it easier for new developers to get started with working on the project. Chances are they are already familiar with the framework and can put all of their attention into understanding the specifics of the application.

What you need to know before using a PHP framework?

Knowing object-oriented PHP is also a must, as most modern PHP frameworks are object-oriented. Make sure you understand concepts like classes, objects, inheritance, methods, traits, and access modifiers. Since many web apps connect to a database, you should know about databases and SQL syntax.

Do I have to use a framework?

Software and web development frameworks like jQuery and Angular can be used to save time when programming, but are they really necessary? The short answer is no, but it's a bit more complex than that. Just because you don't need to use something doesn't mean it's a bad idea.

What problems do PHP frameworks solve?

Summary. PHP frameworks are a great way for developers of all skill levels to reduce the need for repetitive coding, speed up the development process, and to ensure proper coding when creating web applications.


1 Answers

What 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.

  1. These PHP frameworks follow some design pattern, so when you use a framework you have to follow their coding convention, which makes your code clean and extensible for future purposes.
  2. The Popular PHP frameworks like CakePHP, CodeIgniter, Zend Framework, Symfony follow Model View Controller (MVC) design pattern which separates business logic from user interface, also making the code cleaner and extensible.
  3. As everybody can guess, these frameworks contain a lot of libraries to make your job easier. For example: to validate a form you don't have to write as much code as you have to do in normal coding scenario (without using a framework), just a few lines of code calling the library is usually enough for it.
  4. While working on a large project in a team, an MVC PHP framework will be a great tool for development as you can assign a developer to develop one part of a module for a developer and integration will be quite easy of these developed modules at final level.
  5. These MVC frameworks really help you to develop the project rapidly, if you know a framework well then you'll never worry about the project deadline.
  6. Most of these MVC frameworks use clear url approach making your web project SEO friendly.

check article

like image 155
Sadegh Avatar answered Sep 23 '22 02:09

Sadegh