Need advice about which tool to choose?Ask the StackShare community!

Next.js

6.2K
4.6K
+ 1
322
Symfony

8K
5.9K
+ 1
1.1K
Add tool

Next.js vs Symfony: What are the differences?

Key Differences between Next.js and Symfony

Next.js and Symfony are both popular frameworks used in web development, but they have several key differences.

  1. Server-side Rendering vs. Full-stack Framework: Next.js is primarily a server-side rendering (SSR) framework for creating React applications. It focuses on providing a seamless user experience by pre-rendering pages on the server. Symfony, on the other hand, is a full-stack PHP framework that includes components for both frontend and backend development.

  2. Language and Ecosystem: Next.js is built with JavaScript/TypeScript and is part of the React ecosystem. It allows developers to leverage existing JavaScript libraries and tools. Symfony is written in PHP and has its own ecosystem that includes a wide range of libraries and extensions.

  3. Routing: Next.js uses file-based routing, where each page has its own file in the pages directory. This makes it easy to organize and locate specific routes within the project. Symfony uses a routing configuration file that maps URLs to controllers, providing more flexibility and customization options.

  4. Development Speed: Next.js is known for its fast development speed due to its simple and intuitive setup. It includes features like hot module replacement, which allows for instant updates without refreshing the page. Symfony, being a full-stack framework, takes more time to set up and configure, but provides a wide range of features out of the box.

  5. Community and Support: Next.js has a large and active community, with extensive documentation and resources available. It is widely adopted by many companies and developers. Symfony, being one of the oldest PHP frameworks, also has a strong community and a wealth of resources. It has been used in numerous high-profile projects and has a mature ecosystem.

  6. Scalability: Next.js supports serverless deployment through platforms like Vercel, which allows for easy scalability and automatic scaling based on demand. Symfony can also be scaled effectively using techniques like load balancing and caching, but it requires more configuration and setup compared to Next.js.

In Summary, Next.js is a server-side rendering framework for React applications with a JavaScript/TypeScript ecosystem, file-based routing, and fast development speed. Symfony, on the other hand, is a full-stack PHP framework with its own ecosystem, routing configuration file, and support for scalability.

Advice on Next.js and Symfony
Needs advice
on
GolangGolangNode.jsNode.js
and
SymfonySymfony

I'm about to begin working on an API, for which I plan to add GraphQL connectivity for processing data. The data processed will mainly be audio files being downloaded/uploaded with some user messaging & authentication.

I don't mind the difficulty in any service since I've used C++ (for data structures & algorithms at least) and would also say I am patient and can learn fairly quickly. My main concerns would be their performance, libraries/community, and job marketability.

Why I'm stuck between these three...

Symfony: I've programmed in PHP for back-end in a previous internship and may do so again in a few months.

Node.js: It's newer than PHP, and it's JavaScript where my front-end stack will be React and (likely) React Native.

Go: It's newer than PHP, I've heard of its good performance, and it would be nice to learn a new (growing) language.

See more
Replies (1)
Max Musing
Founder & CEO at BaseDash · | 6 upvotes · 194.4K views
Recommends
on
Node.jsNode.js
at

Go with Node.js. There's something really satisfying about being able to use a single language across your entire tech stack. Especially once you integrate GraphQL, which is effectively JSON.

Your second best option is Go, but the ecosystem around Node.js is quite a bit stronger. This will play a big factor when you start building functionality like file management, messaging (especially in real-time), and authentication. The libraries and documentation are just stronger for Node.

See more
Decisions about Next.js and Symfony

We choose Next.js for our React framework because it's very minimal and has a very organized file structure. Also, it offers key features like zero setups, automatic server rendering and code splitting, typescript support. Our app requires some loading time to process the video, server-side rendering will allow our website to display faster than client-side rending.

See more

We’re a new startup so we need to be able to deliver quick changes as we find our product market fit. We’ve also got to ensure that we’re moving money safely, and keeping perfect records. The technologies we’ve chosen mix mature but well maintained frameworks like Django, with modern web-first and api-first front ends like GraphQL, NextJS, and Chakra. We use a little Golang sparingly in our backend to ensure that when we interact with financial services, we do so with statically compiled, strongly typed, and strictly limited and reviewed code.

You can read all about it in our linked blog post.

See more
Lucas Litton
Founder & CEO at Macombey · | 13 upvotes · 545.7K views

Next.js is probably the most enjoyable React framework our team could have picked. The development is an extremely smooth process, the file structure is beautiful and organized, and the speed is no joke. Our work with Next.js comes out much faster than if it was built on pure React or frameworks alike. We were previously developing all of our projects in Meteor before making the switch. We left Meteor due to the slow compiler and website speed. We deploy all of our Next.js projects on Vercel.

See more

Hey guys,

My backend set up is Prisma / GraphQL-Yoga at the moment, and I love it. It's so intuitive to learn and is really neat on the frontend too, however, there were a few gotchas when I was learning! Especially around understanding how it all pieces together (the stack). There isn't a great deal of information out there on exactly how to put into production my set up, which is a backend set up on a Digital Ocean droplet with Prisma/GraphQL Yoga in a Docker Container using Next & Apollo Client on the frontend somewhere else. It's such a niche subject, so I bet only a few hundred people have got a website with this stack in production. Anyway, I wrote a blog post to help those who might need help understanding it. Here it is, hope it helps!

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Next.js
Pros of Symfony
  • 49
    Automatic server rendering and code splitting
  • 43
    Built with React
  • 33
    Easy setup
  • 26
    TypeScript
  • 24
    Universal JavaScript
  • 22
    Zero setup
  • 21
    Static site generator
  • 12
    Simple deployment
  • 12
    Just JavaScript
  • 12
    Incremental static regeneration
  • 10
    Filesystem as an API
  • 10
    Frictionless development
  • 9
    Everything is a function
  • 9
    Well Documented
  • 8
    Has many examples and integrations
  • 8
    Testing
  • 7
    Isomorphic React applications
  • 4
    File based routing + hooks built in
  • 2
    Deployment
  • 1
    SEO
  • 177
    Open source
  • 149
    Php
  • 130
    Community
  • 129
    Dependency injection
  • 122
    Professional
  • 80
    Doctrine
  • 75
    Organized
  • 71
    Modular architecture
  • 47
    Smart programming
  • 45
    Solid
  • 20
    Documentation
  • 15
    LTS releases
  • 10
    Easy to Learn
  • 9
    Decoupled framework components
  • 9
    Robust
  • 8
    Service container
  • 8
    Bundle
  • 8
    Good practices guideline
  • 7
    Simple
  • 7
    Powerful
  • 6
    Flexible

Sign up to add or upvote prosMake informed product decisions

Cons of Next.js
Cons of Symfony
  • 9
    Structure is weak compared to Angular(2+)
  • 10
    Too many dependency
  • 8
    Lot of config files
  • 4
    YMAL
  • 3
    Feature creep
  • 1
    Bloated

Sign up to add or upvote consMake informed product decisions

What is Next.js?

Next.js is a minimalistic framework for server-rendered React applications.

What is Symfony?

It is written with speed and flexibility in mind. It allows developers to build better and easy to maintain websites with PHP..

Need advice about which tool to choose?Ask the StackShare community!

What companies use Next.js?
What companies use Symfony?
See which teams inside your own company are using Next.js or Symfony.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Next.js?
What tools integrate with Symfony?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Next.js and Symfony?
Create React App
Create React apps with no build configuration.
Gatsby
Gatsby lets you build blazing fast sites with your data, whatever the source. Liberate your sites from legacy CMSs and fly into the future.
Hexo
Hexo is a fast, simple and powerful blog framework. It parses your posts with Markdown or other render engine and generates static files with the beautiful theme. All of these just take seconds.
LoopBack
A highly-extensible, open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
See all alternatives