post
08/08/2017 35 min read

Why choose Laravel and why we use it?

Laravel is a widely known solution, but it is somewhat difficult to find a non-engineer able to explain what are the Laravel perks and why you should choose it over Ruby on Rails.

This post is for all the non-technical professionals who consider using Laravel for their projects.

At the moment of this article being written, the latest Laravel version is 5.4, expecting 5.5 to be released in a month. This is important because you can find a lot of interesting information in Laravel reports dated two years ago but most likely will miss even more due to its rapid development.

WHAT IS LARAVEL?

If you are reading this, then you have probably been to Wikipedia and understood almost nothing of its tedious definition: “Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model—view—controller (MVC) architectural pattern.”

Well, Laravel is indeed just another PHP framework. We have already compared some of the PHP frameworks. But this is not about which PHP framework is the fanciest. Most probably, you are now considering some of the following options: PHP/Laravel, Ruby on Rails, Node.js-based framework, or even something else. But it’s Laravel that made you think of PHP for your application, isn’t it?

There is a lot to say about Laravel but the most important thing to know is that Laravel is a PHP framework based on Symphony. Taking the best of Symphony (dependency injection and HTTP usage) it allows reducing the amount of code and significantly improves the performance.

For developers, Laravel means, first and foremost, the code brevity, which saves time and reduces the chance of mistake.

Klim Trakht, CTO at Kultprosvet

Actually, it benefits not only the developers. The code brevity speeds up the project development and significantly simplifies its support, thus positively affects its budgeting.

WHEN DO YOU NEED LARAVEL?

Laravel is the technology that comes handy when you try to think outside of the box. There are a lot of off-the-shelf solutions for e-commerce platform development, like Magento, WooCommerce, Shopify, etc. If you are up to online media, then you probably should have a closer look at WordPress.

But maybe you find yourself in need of a REST API backend for iOS or Android app. Or perhaps it is a scalable web application with unique interface and functionality that cannot be easily classified. If so, Laravel is a solution for you.

LARAVEL VS RUBY ON RAILS VS NODE.JS

post

There would be no need for this post if there weren’t any alternatives. Let’s see what are the reasons for a developer selecting a framework or a technology.

Most of the software engineers sell their services within the technologies they’re keen on. This is quite reasonable assuming the time spent on mastering the technology and desire for these efforts to pay off.

Thus they automatically become the ambassadors of the technology they have mastered. No developer would ever admit that the technology he uses sucks. This is where the fight for the best technology begins.

So why would developers start working with Node.js, Ruby, and Laravel? Let’s examine the motivation of those who are open to change:

  • Node.js suits best the teams of front-end developers working primarily with JavaScript. They don’t want anyone else to mess with their project—especially another technologу—so that they could continue using their favorite JS syntax and develop the backend.
  • Ruby on Rails owns its birth and popularity simply to the fact that at some point Laravel was needed but it wasn’t there yet. Ruby on Rails praises the same principles as Laravel: the brevity of the code and its performance.
  • Speaking of Laravel, PHP developers were waiting for a solution like this for a long time. Assuming that PHP engineers make the majority of all the backend developers, the popularity of Laravel was imminence.

The Eastern European trends are somehow represented by the following amounts of CVs taken from the popular Ukrainian job site work.ua:

post

A DEVELOPER’S OPINION

We have compared the frameworks of the PHP family before. But for this article, I asked the developers of my team to help me comparing Ruby on Rails, Node.js-based frameworks, and PHP/Laravel.

I think Laravel and Ruby on Rails are pretty equal platforms for web application development. Both of them have excellent documentation and large developer communities. Node.js used to have some strengths such as asynchronous query processing and direct WebSocket support—but now both Laravel and Ruby on Rails can do that as well. There are a lot of frameworks for Node.js, and many of them are still in beta status. They are far behind Laravel and Ruby on Rails in terms of documentation and clarity. PHP 7 release became the key factor for Laravel evolvement. It increased the performance of PHP-based solutions.

Stanislav Volnjanskij, Senior software engineer at Kultprosvet

LARAVEL PROS

Here we have put together the list of Laravel advantages. They are obvious even to those who are not into the software engineering terminology:

  • The code brevity saves your time.
  • The performance is improved after PHP 7 release.
  • The large developer community helps to solve any problem quickly.
  • Extensive and well-structured documentation is available.
  • A great number of the resources like Laracasts makes it easier to learn and boosts the labor market potential.

So, I guess that’s all for now. Feel free to poke us if you have any questions!

scroll
hire us
Play video
view project
Read
scroll