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

Actually, 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 am still using PHP. I should work with nodejs (sails), because PHP would be a language would be going to die.

Well, what's better to use for the future.

  • Both are MVC frameworks
  • on both you can code 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), bower for the frontend

What's better - and an important aspect - which framework creates responds faster?

As a technical guy, i would suggest you to use sails over laravel. Its not because PHP is going to die(and it will not happen).

As far as i know, anything built on javascript would be faster.

There are lot of advantages in sails like sockets are very easy to implement so on.

When it comes to disadvantage, its only with DOCUMENTATION. For a beginner, it would become little difficult to grasp all the things.

From PHP (Synchronous) to sails(Assynchronous), it will take some time to get familiar with sails.

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

For more references, see this , this and this

PHP is never going to die, Choosing a technology stack all depends on application & available resource, If you have expertise in php then you will obviously take longer time building app in nodejs/sails.

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

  • Laravel is pretty mature framework (was founded in 2011 and has 9K contributors)
  • It got builtin support for most of things like migraters, seeders, queuing system and templates.
  • Documentation is very good.
  • lots of 3rd party integration, you can integrate it with s3-buckets, dropbox any email service provider and backup services in few minutes. complete list of integrations

Disadvantage of laravel:

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