Laravel5 (PHP) or SailsJS (node.js)?

In fact, I am working on a project with Laravel5 (laravel.com)

someone who is working on another project with SailsJS (sailsjs.org) asked me why I'm still using PHP. I have to work with nodejs (sails) because PHP will be the language that dies.

Well, what is better to use for the future.

  • Both are MVC environments
  • on both you can encode views with Jade (see jade-lang.org)
  • on both you can use any database.
  • on both you can easily install modules (composer / npm for the backend), a gazebo for the interface

Which is better - and an important aspect - which structure creates answers faster?

+5
source share
2 answers

As a tech guy, I suggest you use sails over laravel . This is not because PHP will die (and this will not happen).

As far as I know, everything built on javascript will be faster.

There are many advantages to sails, such as sockets, very easy to implement and so on.

When it comes to a flaw, its only with DOCUMENTATION . It would be difficult for beginners to understand everything.

From PHP (synchronously) to sails (Assynchronous), it takes some time to become familiar with sails.

Make sure you understand the basics of node.js well before starting with sails.

See this , this, and this for more information.

+7
source

PHP will never die, the choice of technology stack depends on the application and the available resource. If you have experience in php, you will obviously need more time to create the application in nodejs / sails.

I worked on both frameworks (sailsjs and larave 5.2) and for my new project I will go with laravel because:

  • Laravel is a rather mature structure (it was founded in 2011 and has 9 thousand members).
  • He got built-in support for most things like migration, seeders, queuing systems, and patterns.
  • The documentation is very good.
  • many third-party integration, you can integrate it with s3-buckets, Dropbox of any email service provider and backup services in a few minutes. full list of integrations

Laravel disadvantage:

  • Socket support is poor, but you can do the socket part in nodejs and you can bridge using REST APIS.
  • Mongodb support is not good.
+2
source

Source: https://habr.com/ru/post/1234457/


All Articles