What is wrong with Laravel, the most popular PHP framework?

Laravel, one in every of the foremost well-liked PHP frameworks these days, isn’t essentially the most effective one. it’s nice edges, so — however, it additionally has some necessary limitations. we’ll take a better cross-check why Laravel is nice for small-to-medium sized comes done by PHP artisans and why it’s not thus well-liked amidst the company professionals.

Laravel has really remodeled the approach PHP developers develop websites and applications. it’s the foremost starred PHP framework on GitHub — however it’s out and away not the most effective one. Why is it so?

What is a framework, 1st of all?

A framework could be a software package or a logical thought developed to act as a tenet or tool for achieving some result, that builds upon the initial thought to supply a product or helpful outcome. In terms of PHP, a framework could be a assortment of categories, sanctionative the developers to deliver apps quicker.

Laravel is associate degree ASCII text file PHP framework that enables PHP developers to form fine-looking and purposeful websites and apps in virtually no time. Mastering the fundamentals of Laravel on your own is sort of attainable, as Laravel technical documentation is admittedly in-depth and clear. this can be the foremost well-liked PHP framework on Github as of 2017, introduced in 2011 by Taylor Otwell in an endeavor to enhance the practicality provided by CodeIgniter (which lacked constitutional authorization and authentication prospects back then).

Over the passing years, Laravel became the foremost wide used PHP framework, because of its wealthy variety of options, constitutional practicality and sort of packages obtainable. Below we have a tendency to describe the Laravel options that build it shine — and make a case for why Laravel isn’t that nice on balance.

Key Laravel options

There is a large number of Laravel edges and nice options, and each developer will build their own list of why Laravel is thus nice for them. we have a tendency to merely list the foremost vital Laravel benefits from our purpose of view:

  • Concise logics (URL routing is easy)
  • Contracts and UI customization
  • Big and useful community
  • Laravel system
  • Lots of packages for custom solutions
  • Artisan CLI
  • Native support for OAuth2 and packages for SaaS development
  • Convenient API implementation
  • Can function the idea for a CMS (October CMS)
  • Detailed and on-point documentation
  • Multiple tutoring programs and certification
  • We provide a summing up of those edges in additional details below.

URL routing out-of-the-box

Routing is admittedly as easing as shaping the address and therefore the destination page (Closure), letting quite a communicatory routing description methodology. The developers will cluster the routes with ease, produce all the required resources for CRUD pages, attach numerous filters and bind the models to bound request parameters.

To say a lot of, the PGP developers will nest routes into each other and even implement versioning atop of them, with an easy ‘v1’ prefix. Then one will copy the code and add the ‘v2’ prefix (i.e. once the new API version is needed), and implement the new logic, with the new references to actions, controllers and alternative resources.

Contracts and UI customization

All the modules obtainable with Laravel are absolutely customizable. The developer will modification any required worth to form distinctive and immersive user experiences, non-standard interfaces and neat solutions which will very stand out from the competition.

Laravel contracts are a finely-set set of PHP interfaces, that describe the strategies of operations for the core services of the framework, like queuing jobs or emailing. every contract is enforced within the framework and has interaction points with all the specified modules, thus even the foremost intense customization won’t leave the module inoperable.

Laravel community could be a huge and devoted one

When PHP developers worldwide began to understand the potential of Laravel and understood it helps replace hours of writing custom code with minutes of victimization constitutional modules — this framework got an enormous, ablaze and perpetually growing community. As of 2018, it’s the foremost well-liked PHP framework, with quite forty million downloads from Github. to mention even a lot of, once it became open supply, developers worldwide were ready to produce their own packages, additional extending its practicality.

As a result, Laravel is consistently updated and supports all the most recent developments of PHP, changing into the tool of selection for making small-to-medium net applications. Laravel permits PHP developers to supply neat websites quickly, and if a developer meets a retardant he cannot solve with the documentation — there continuously could be a community able to help! to mention a lot of, Laracasts could be a good way to find out the ropes and advanced Laravel tricks. These screencasts are often vastly valuable for any Laravel developer, thus we promote you to do them out!

Laravel encompasses a nice software package system

Forge, the Laravel product engineered by Taylor Otwell, is targeted at the benefit of provisioning and managing PHP applications. It permits to speedily launch and flexibly manage any amounts of PHP applications across a range of cloud service suppliers, together with AWS, DigitalOcean, and Linode. The tool helps build queues very easy and provides immeasurable helpful options, together with free SSL certificates.

Laravel Spark (not to be confused with Apache Spark used for process huge Data), is that the true superhero Laravel package. It comes packed to the brim with the code required to make apps and provides quite ten most frequently needed options out-of-the-box. Profile authorization, profile photos, invoices and request, arcanum reset and user authentication, and lots, lots more. Spark is admittedly one in every one of the explanations that build Laravel shine.

Horizon could be a sturdy queue observation tool from the core developers of Laravel. It provides a strong instrument to deploy, put together and monitor Laravel Redis queues, complete with a neat dashboard and simply adjustable code-driven settings. it’s ASCII text file and provides the PHP developers with the right suggests that to seem below the hood of their Laravel applications and management what’s occurring.

Envoyer is that the preparation automation tool sanctionative any developer to deliver their code to the tip customers across any infrastructure with none period of time. victimization Envoyer ensures the user expertise is uninterrupted, the app is updated instantly and if any rollback is required — it’s done instantly.

Lumen micro-framework is one in every of the merchandise that type the Laravel system. it’s very blazing quick, even as its title (“light” from Latin) suggests. It helps produce clean and purposeful Apis and well as versatile microservices with the most stress on speed. This helps the developers to experiment and build app prototypes quick. additionally, the code written in Lumen is often simply pushed to Laravel with no extra effort to remodel a check project into a complete Laravel app in no time.

These are the most merchandise that thrives upon Laravel and types a perpetually growing system geared toward making certain the convenience and potency of PHP development victimization Laravel.

Lots of packages for custom solutions

Laravel basic options are often extended with virtually any package you would possibly like to feature. The functions like authentication, API authentication, authorization, encryption, caching or arcanum reset — of these packages are obtainable from the beginning and a lot of are often downloaded from the official Laravel important person website. There are quite fourteen,000 community packages freely obtainable from Packalyst, which permit finding the most effective fit any case.

API Authentication with Passport and SaaS development packages for security

Laravel provides a fully-configured OAuth2 server you’ll deploy with many commands. this permits swift and straightforward API authentication through the Laravel feature known as Passport.

Laravel leverages the ready SQL statements to disable the injection attacks, together with an easy thanks to forestall taking the user input the injection with a tag. The framework additionally comes with many a lot of SaaS development packages for OpenSSL cryptography, Bcrypt, and Argon2 hashing, and convenient facades for arcanum reset. Everything attainable was done to change a PHP craftsman to construct a good and secure software package with very little effort.

Artisan CLI

Artisan could be a convenient program line Interface (CLI) tool that’s supplied with Laravel. This basically could be a Symphony command console, however with a greatly raised practicality. It permits interacting with any a part of your app through one program line victimization Tinker, a REPL tool. The developers may write their own commands, store them in any directory they need (as long because they are often loaded by the Composer). victimization craftsman helps the developers avoid the bulk of the tedious repetitive manual cryptography tasks entirely.

Convenient API implementation

All the moving elements of the framework are loosely coupled to change them to act with one another and numerous custom modules through a convenient, clean and purposeful API. All the tasks from question building and migrations to sanctionative numerous machine-driven tests are designed to figure as merely and seamlessly as attainable, with tokenish involvement of the computer programmer.

Can function the idea for a CMS

Laravel is the essential PHP framework for Oct CMS. this can be a good product that’s currently actively developed and permits any PHP developer to launch a diary or web site themselves, while not the ambit and restrictions of WordPress, and with utilizing the total potential of Laravel. operating with Oct CMS is quicker, less complicated and far a lot of customizable than with a customary WordPress web site.

Detailed and on-point documentation

We have already mentioned the depth and fullness of Laravel technical documentation. Even a beginner PHP developer will perceive all the ideas and use all the probabilities provided by the framework. every feature is delineated with the code examples and with cross-references to any or all the resources required to grasp the fabric.

Multiple tutoring programs and certification

Laravel community provides another nice profit to any or all the PHP developers operating with the framework. There are immeasurable ablaze tutors WHO will continuously facilitate the newbies master all the probabilities of Laravel system faster. there’s an opportunity of certification to substantiate the extent of experience with Laravel and there’s a lot of prospects to require half within the additional evolution of Laravel.

With this all being same, it looks Laravel is that the star on the PHP scene, associate degree example of what to aim for and the way to develop PHP apps, isn’t it? Well, normally, this list of ten Laravel edges would be the tip of it (with some authors concentrating a lot of on victimization fluent ORM, Blade, unit testing, queuing and background jobs, etc.)

However, the purpose is that once a PHP developer masters Laravel quite well, the understanding of bound necessary design problems and peculiar dependencies comes. These don’t seem to be essentially limitations, however bound things are often done only 1 approach with Laravel.

Conclusions of what’s wrong with Laravel

As you’ll see, Laravel is a wonderful tool overall. It provides all the items and handles to make a good small-to-medium product or application quite quick. IT Svit uses Laravel to make numerous CRM systems, business solutions and tailored merchandise. this can be one in each of the areas wherever we will produce a superior project team and satisfy all the expectations of our customers. However, because of a variety of reasons, Laravel can’t be used for enterprise-grade software package development, and IT Svit will give Symphony specialists for that purpose.

For example, there’s a good Reddit thread in r/PHP, wherever multiple developers expressed their opinions on why Laravel is truly quite poorly designed. the bulk of the comments revolve around victimization Facades and fluent ORM, as they really quite limit the ways that one will implement the required dependencies.

What’s even a lot of worrying, the most recent releases of Laravel have brought no new turbulent options. Instead, they were concentrating on additional enriching the prevailing system, adding new options to the obtainable merchandise and sharpening rather tiny details. Now, we have a tendency to don’t say this can be dangerous. However, this would possibly seem like Laravel is losing the impulse of additional evolvement — and this, in turn, would possibly lead it to lose the competitive race.

Leave a Reply

Your email address will not be published. Required fields are marked *