Need advice about which tool to choose?Ask the StackShare community!
Next.js vs Symfony: What are the differences?
Next.js: A small framework for server-rendered universal JavaScript apps *. Next.js is a minimalistic framework for server-rendered React applications; *Symfony:** A PHP full-stack web framework. Symfony is written with speed and flexibility in mind. It allows developers to build better and easy to maintain websites with PHP. Symfony can be used to develop all kind of websites, from your personal blog to high traffic ones like Dailymotion or Yahoo! Answers.
Next.js and Symfony belong to "Frameworks (Full Stack)" category of the tech stack.
"Automatic server rendering and code splitting" is the top reason why over 9 developers like Next.js, while over 153 developers mention "Open source" as the leading cause for choosing Symfony.
Next.js and Symfony are both open source tools. It seems that Next.js with 38.2K GitHub stars and 4.6K forks on GitHub has more adoption than Symfony with 21K GitHub stars and 6.98K GitHub forks.
eTobb, Improvely, and Chooos are some of the popular companies that use Symfony, whereas Next.js is used by Avocode, OverCode Solutions, and CybrHome. Symfony has a broader approval, being mentioned in 355 company stacks & 267 developers stacks; compared to Next.js, which is listed in 79 company stacks and 66 developer stacks.
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.
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.
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.
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.
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.
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!
Pros of Next.js
- Automatic server rendering and code splitting41
- Built with React35
- Easy setup28
- Universal JavaScript22
- TypeScript21
- Zero setup21
- Static site generator16
- Simple deployment11
- Incremental static regeneration11
- Just JavaScript10
- Frictionless development9
- Filesystem as an API9
- Testing8
- Isomorphic React applications7
- Everything is a function7
- Well Documented7
- Not nuxt6
- Has many examples and integrations6
- Not vue4
- File based routing + hooks built in2
- Deployment1
- Not angular1
Pros of Symfony
- Open source173
- Php146
- Dependency injection127
- Community127
- Professional120
- Doctrine78
- Organized72
- Modular architecture68
- Smart programming45
- Solid42
- Documentation18
- LTS releases14
- Easy to Learn9
- Robust9
- Decoupled framework components9
- Bundle8
- Good practices guideline8
- Service container8
- Simple7
- Powerful6
- Flexible4
Sign up to add or upvote prosMake informed product decisions
Cons of Next.js
- Not Vue8
- Structure is weak compared to Angular(2+)7
- Is no Angular2
- Not flutter2
- Not Angular 21
Cons of Symfony
- Too many dependency9
- Lot of config files7
- YMAL4
- Feature creep2
- Bloated1