With so many blogs, social networks, apps, etc. on the internet, you cannot afford to have a slow website and expect to succeed. Google gets over a billion searches every month. Guess what? Your loading speed is one of the factors that Google takes into account when ranking websites in the top ten results. If you have a load time of less than a second, then the gods are with you and Google will bless you with organic traffic. On average, a load speed of 1.5 and less is considered excellent. 1.5 to 2 seconds is considered good. Anything beyond that will require you to take action. Until recently, I always blamed the internet bandwidth for slow loading websites. If the site or application is slower then it’s probably the limitations of my internet bandwidth. Then I discovered tools that test for websites. It turns out the sites that ranked well for competitive keywords have a load speed of less than 2 seconds. Those annoying sites that always show up for your target keyword and bury your site seem to have a load time of less than a second. Why does speed matter to search engines like Google, Bing, Yahoo etc.?It’s all about the user experience. No one loves sites that take an eternity to load. The internet usage market share for mobile devices is growing rapidly. Not all mobile devices have the power of a desktop computer's resource. If search engine X has slow sites in its top 10 and search engine Z has the fastest sites in the top 10 then Z wins the market share. Users will prefer working with Z engine because of its quality results with an amazing user experience.

Website performance tools

Pingdom is one of the popular website performance tools that you can use. It tests the loading time of your website from a specific location and returns the time it took your website to load. It also gives you a breakdown of the resources loaded and how long it took to load each resource. It's a great tool for identifying bottlenecks. Another tool that I like working with is Google Page Insights. It rates the performance of your website both on mobile devices and desktops. It identifies resources that cause bottlenecks and you can take it up from there.

The need for speed: Does it matter what framework you use?

Yes, it does. Let’s say you have a server response time of 0.7 seconds and it takes 1.4 seconds to load other resources on your website. The total load time becomes 2.1 seconds. On the other hand, if the server response time is 0.2 and it takes 1.4 to load resources, the total load time is 1.6. This makes a huge difference to search engines.

Introducing Lumen PHP micro framework

"Lumen is a brand new PHP framework from Taylor Otwell designed for building lightning fast micro-services and API’s. When speed is a necessity, Lumen should be your first choice." end of quote Laravel Newslumen Based on the benchmark tests by Taylor Otwell the creator of Laravel MVC framework, Lumen is the fastest micro framework followed by Slim then Silex.
  1. Lumen - 1,700 requests per second
  2. Slim - 1,250 requests per second
  3. Silex - 950 requests per second.
Note: The above results are for slim version 3. As of this writing, slim micro framework version 3 is not yet officially released. The results of slim framework version 2 are very close to Lumen results. The difference between them is around 100.Does this mean Slim and Silex suck? Not really. This is what Taylor Otwell had to say about the three frameworks. “All of these frameworks are ridiculously fast.” Taylor Otwell Micro frameworks are usually used to develop APIs, but they can also be used to create web applications. For most web applications, all of the above three PHP micro frameworks will give you the speed that you need to get loved by Google. However, if you are building an API and expect a lot of requests and want to give the users an excellent performance, then based on the above numbers, you may want to consider using Lumen. What if you do not want to build APIs? Does it mean you should forget about Lumen? Not really, Lumen is developed by the Laravel MVC framework team. If you are thinking of switching to Laravel but you are not really into MVC frameworks then Lumen would be an excellent starter for you. Once you test the waters and to use Laravel as a full-fledged MVC framework then you can just convert your Lumen project into a Laravel project without changing anything. Visit the official website for Lumen PHP micro framework for more details

Summary

Lumen PHP micro framework is a new PHP micro frame framework from Laravel that you can use to create powerful APIs and web applications. Projects created using Lumen can be converted into Laravel projects without changing a thing.