256 Kilobytes

Best PHP Frameworks

Articles in Server-Side | By Hash Brown

Published | Last Update

Each PHP framework has pros and cons. Which one you choose depends on your coding styles and preferences. We've rounded up a list of the top 10.

1,248 view, 2 RAMs, and 3 comments

Top 10 PHP Frameworks for Web Development

PHP frameworks make rapid web development possible, if you're thinking of creating a project in PHP you should consider picking a PHP framework from the list below. They provide you with a solid base for well organised, maintainable and reusable code. They make it far easier for you to grow and scale your application over time.

Almost all modern PHP frameworks follow the MVC (model, view, controller) approach that makes sure there is separation between presentation and logic. This is considered to be best practice in modern web development.

This article will give you a small overview of a pick of the most common PHP frameworks. They are listed here:

  1. Laravel
  2. Symfony
  3. CodeIgniter
  4. Zend Framework
  5. Yii 2
  6. Slim
  7. PHPixie
  8. CakePHP
  9. FuelPHP
  10. Phalcon

1. Laravel

Laravel Framework

Despite being a relatively new PHP framework, it's become extremely widely used and has to be the most popular PHP Framework out there to date. Thanks to their huge community, solid documentation, screencasts and tutorials Laravel is extremely easy to pick up.

Rapid web development is very possible with Laravel thanks to it's features. Artisan (a command line interface) provides a good number of helpful commands while you're developing. We also have to mention their templating engine also, which provides simple methods for common tasks like authentication, sessions, RESTful routing, queuing and caching for it's developers.

Not only is all this put together to make Laravel great, it also has a massive ecosystem with an instant hosting and deployment platform. Laravel is prepackaged with Homestead(Vagrant).

2. Symfony

Symfony Framework

If you're looking for a large scale PHP framework ideal for developing for enterprise projects, Symphony is a perfect choice. It provides developers with a set of reusable PHP components and code enabling them to develop quickly with very few issues. These included components in Symphony Framework are used by many CMS's like PHPBB, PIWIK, OROCRM and Drupal. Even laravel itself uses some of these components.

Along with these great features, Symfony's ecosystem is large and supported by a great community of active developers.

3. CodeIgniter

Codeigniter Framework

If you have been involved with web development for any period of time you're more than likely going to already know about Code Igniter. It's one of the oldest PHP Frameworks but it's known for being both simple and powerful.

It can be easily installed and requires very little user configuration. It requires very little resources to run, making it great on small or shared hosting platforms. Another strength of CodeIgniter is it's speed, it runs very quickly with database intensive tasks compared to other frameworks.

One point worth noting is it's not based on the MVC framework, in CodeIgniter Models and Views are optional.

Code Igniter is a very well documented framework, and is ideal for PHP developers and veterans alike!

4. Zend Framework

Zend Framework

Zend Framework is widely known for being very difficult to learn, but also fantastic for complex projects.

It includes a great set of features such as instant online debugging tools, a database wizard, cryptographic coding tools and a drag and drop editor.

It's editor supports front-end languages including JavaScript and of course HTML/CSS.

5. Yii 2

Yii 2 Framework

Much light Code Igniter the veterans among us are going to be familiar with Yii. Thanks to the recently released Yii 2 it's popularity is returning again!

Yii 2 is built on the Don't Repeat Yourself (DRY) approach, designed for pure object oriented programming. Thanks to it's lazy-loading functionality, Yii 2 is an extremely fast PHP Framework when compared with others.

It's also fully integrated with AJEX and JQuery, making it perfect for large-scale web development. It also features a massively powerful class code generator called Gii which handles all your OOP (object-oriented programming), allowing for rapid prototyping to provide a web-based interface to interactively generate the code you need.

Yii 2 has a wonderful and active community, and should be simple to pick up for new PHP developers.

6. Slim

Slim Framework

If you're looking for a lovely little micro-framework you may want to look at Slim.

Slim is a lightweight PHP framework ideal for developing RESTful API's and services. It's packed with features such as client-side caching, session and cookie routing, URL routing and support for messages over HTTP requests. It's excellent for developing small applications where a full stack PHP framework is overkill.

7. PHPixie

PHPixie Framework

PHPixie is only a baby, first released in 2012 filling a gap of providing a high performance PHP framework for read only websites. PHPixie shares a lot in common with FuelPHP, they both implement the HMVC design pattern and composes of independent components which can be used outside of the framework.

All of PHPixies components are unit tests and require very minimal dependencies. Some of it's features are object relational mapping, validation, caching, authentication and authorisation.

PHPixie allows you to use HAML markup language, enables schema migration and has a very powerful routing system.

8. CakePHP

CakePHP Framework

CakePHP has been out for over 10 years at this point, but it's still one of the most popular PHP Frameworks. Combining speed, reliability and security CakePHP offers developers of all levels a framework they can trust. It has a huge community of developers who keep CakePHP at the top of the pile and inline with the latest technology trends. It's a very modern framework and is suited for commercial development.

Some of it's unbeatable features include form validation, SQL injection prevention, solid documentation, cross-site scripting (XSS) prevention, cross site request forgery protection and caching.

9. FuelPHP

FuelPHP Framework

FuelPHP is an awesome modular, extendable, and flexible PHP framework. The full-stack framework uses the MVC pattern as well as its evolved version Hierarchical Model-View-Controller (HMVC) in the lower architectural level. It addresses security concerns by offering features such as input and URI filtering and output encoding. It comes with its own authentication framework, with many other sophisticated features and backed with extensive documentation. FuelPHP is suitable for delivering end-to-end internet solutions of diverse sizes and complexities.

10. Phalcon

Phalcon Framework

And now for something completely different to the frameworks above. Phalcon stands out compared to other PHP Frameworks as it's based on C++ and C's coding style.

Phalcons framework is delivered as a C-extension, it's optimised at low levels which is greatly reduces the overhead typical of MVC based apps. Phalcon is loaded with fantastic features like asset management, translation, caching, security and universal autoloader.

It's a fairly easy to use framework, if you're moving into web development with a background in C programming you're going to love Phalcon.

Which PHP Framework Is The Best?

Unfortunately there is no clear winner.

The best framework for you (and your team) will depend on the following factors:

  • Your skills and experience.
  • Your coding styles.
  • The project you're trying to build.

Each framework has it's pros and cons and the one that's right for you could be anyones guess. I would read the development documents for all of these and perhaps give them all a try.

Users Who Have Downloaded More RAM:
August R. Garcia (3 years ago)
Huevos Rancheros (3 years ago)
🐏 ⨉ 2
Posted by Hash Brown 3 years ago

Edit History

• [2018-12-07 2:28 PST] Hash Brown (3 years ago)
🕓 Posted at 07 December, 2018 02:28 AM PST

Read More:
Profile Photo - August R. GarciaAugust R. GarciaLARPing as a Sysadmi...Portland, ORSite Owner

And if you're looking for something that provides a more complete solution out of the box (rather than higher levels of customization), you might check out the content management systems category, such as these threads:

Download more RAM. 🐏 ⨉ 0Posted by August R. Garcia 3 years ago 🕓 Posted at 07 December, 2018 03:39 AM PST

Sir, I can do you a nice SEO.

Profile Photo - August R. GarciaAugust R. GarciaLARPing as a Sysadmi...Portland, ORSite Owner

Based on the data shown below, the answer is basically that Laravel is the most popular and clearly has the largest community around ir right now. Clearly one of the newest PHP frameworks out there, but it's been around for long enough that most of the bugs and so on have been sorted out. It's been roughly 11 months since Hash Brown made this post initially and have seen some decent updates over that time, but it's stable enough that the probability of running into something like that time AngularJS was completely redone when making Angular 2+ (i.e., a ton of work for developers who built things in AngularJS/Angular 1.x who later had to choose between an involved and time-consuming upgrade or sticking with version 1 (although there were/are still a number of updates to AngularJS and it's still being supported by its developers).

Anyway, for the lulz, here are some estimates for how popular various PHP frameworks are, estimated by Ahrefs' estimated search volumes:

PHP Framework Popularity and Ahrefs' Search Volume

As an HTML table:

zend framework611.9K
yii 22430

Also, the search volume for "Yii 2" in this screenshot is misleading for obvious reasons. Better terms for that:

yii framework1,200

Also "Slim" and "Symphony" for the same reasons:

slim framework321.0K
php slim34350
php slim framework33150

Also, "Zend" instead of "Zend Framework":

zend framework1.9KK

Anyway, the estimated search volumes are also fairly relevant in that higher search volume means more people are using the framework, which means there are more people reporting bugs, submitting patches, and answering framework-related questions that show up in search results.

Google Trends Data - PHP Framework Popularity Over Time

Google Trends supports up to five queries at a time. Chose what seem to be the top five most popular for these two graphs/charts.

PHP Framework Popularity 2019/Almost 2020 (Over 12 Months)

PHP Framework Popularity/Search Volume for 2019

Link to Google Trends Data on PHP Frameworks over 12 Months

PHP Framework Popularity Data from All Time (2004-Present)

PHP Framework Popularity/Search Volume for 2004-2019

Link to Google Trends Data on PHP Frameworks Since 2004

Users Who Have Downloaded More RAM:
Hash Brown (2 years ago)
🐏 ⨉ 1
Posted by August R. Garcia 2 years ago

Edit History

• [2019-12-02 11:24 PST] August R. Garcia (2 years ago)
• [2019-12-02 11:24 PST] August R. Garcia (2 years ago)
🕓 Posted at 02 December, 2019 11:24 AM PST

Sir, I can do you a nice SEO.

Profile Photo - Defaultmonicageller3691Classic User

PHP is widely used language in recent days. It is server based scripting language for web development. These frameworks helps. Thanks for sharing.

Download more RAM. 🐏 ⨉ 0Posted by monicageller3691 2 years ago 🕓 Posted at 09 December, 2019 03:04 AM PST

Digital Marketing Agency

Post a New Comment

Do you like having a good time?

Register an Account

You can also login to an existing account or reset your password. All use of this site is subject to the terms of service and privacy policy.

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account