Get Advice Icon

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

Next.js
Next.js

697
337
+ 1
50
Yii
Yii

485
198
+ 1
263
Add tool

Next.js vs Yii: What are the differences?

What is Next.js? *A small framework for server-rendered universal JavaScript apps *. Next.js is a minimalistic framework for server-rendered React applications.

What is Yii? A high-performance PHP framework best for developing Web 2.0 applications. Yii comes with: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.

Next.js and Yii can be primarily classified as "Frameworks (Full Stack)" tools.

"Automatic server rendering and code splitting" is the primary reason why developers consider Next.js over the competitors, whereas "Open source" was stated as the key factor in picking Yii.

Next.js and Yii are both open source tools. Next.js with 38.7K GitHub stars and 4.69K forks on GitHub appears to be more popular than Yii with 4.86K GitHub stars and 2.22K GitHub forks.

According to the StackShare community, Next.js has a broader approval, being mentioned in 82 company stacks & 69 developers stacks; compared to Yii, which is listed in 58 company stacks and 32 developer stacks.

What is Next.js?

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

What is Yii?

Yii comes with: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
Get Advice Icon

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

Why do developers choose Next.js?
Why do developers choose Yii?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
      Be the first to leave a con
      What companies use Next.js?
      What companies use Yii?

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

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

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

      What are some alternatives to Next.js and Yii?
      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.
      Node.js
      Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
      See all alternatives
      Decisions about Next.js and Yii
      Divine Bawa
      Divine Bawa
      at PayHub Ghana Limited | 13 upvotes 85.5K views
      Apollo
      Apollo
      Next.js
      Next.js
      styled-components
      styled-components
      React
      React
      graphql-yoga
      graphql-yoga
      Prisma
      Prisma
      MySQL
      MySQL
      GraphQL
      GraphQL
      Node.js
      Node.js

      I just finished a web app meant for a business that offers training programs for certain professional courses. I chose this stack to test out my skills in graphql and react. I used Node.js , GraphQL , MySQL for the #Backend utilizing Prisma as a database interface for MySQL to provide CRUD APIs and graphql-yoga as a server. For the #frontend I chose React, styled-components for styling, Next.js for routing and SSR and Apollo for data management. I really liked the outcome and I will definitely use this stack in future projects.

      See more
      David Ritsema
      David Ritsema
      Frontend Architect at Herman Miller | 7 upvotes 17.3K views
      atHerman MillerHerman Miller
      prismic.io
      prismic.io
      Next.js
      Next.js
      React
      React
      Node.js
      Node.js

      When we started thinking about technology options for our own Design System, we wanted to focus on two primary goals

      1. Build a design system site using design system components - a living prototype
      2. Explore new ways of working to position our technical capabilities for the future

      We have a small team of developers responsible for the initial build so we knew that we couldn鈥檛 spend too much time maintaining infrastructure on the Backend. We also wanted freedom to make decisions on the Frontend with the ability to adapt over time.

      For this first iteration we decided to use Node.js, React, and Next.js. Content will be managed via headless CMS in prismic.io.

      1. Next.js so that we can run React serverside without worrying about server code.
      2. prismic.io so that our content is accessible via API and our frontend is fully independent.
      See more
      Buzz Zhang
      Buzz Zhang
      PHP-MVC
      PHP-MVC
      MySQL
      MySQL
      Yii
      Yii
      PHP
      PHP

      Of all PHP frameworks, my best and only choice is Yii . Think of this: you have a MySQL database, it contains several tables. Now you want to setup a PHP-MVC site, firstly, you must create Models, Yii have a very handy tool called Gii, you can easily create model with Gii just by one click, Gii will read your database table columns and create PHP models automatically for you. Now you need Controller, still with Gii, it will automatically create all 4 php files for you with Insert/Delete/Update/Select even with Search function.

      Well, now the most modern way is to have a RESTful API, that's even easier with Yii, you even don't need to care about all the columns, just 4 lines of code you can expose your database table as RESTful API with all GET/POST/PUT/DELETE support, even you change your database table columns, you don't need to change any PHP code.

      For security, Yii have embedded authentication and RBAC support. For multi language, Yii have embedded i18n support, all with out-of-box. Just play with it, I bet you will love it.

      See more
      Martin Johannesson
      Martin Johannesson
      Senior Software Developer at IT Minds | 10 upvotes 12.5K views
      atIT MindsIT Minds
      AMP
      AMP
      PWA
      PWA
      React
      React
      MongoDB
      MongoDB
      Next.js
      Next.js
      GraphQL
      GraphQL
      Apollo
      Apollo
      PostgreSQL
      PostgreSQL
      TypeORM
      TypeORM
      Node.js
      Node.js
      TypeScript
      TypeScript
      #Serverless
      #Backend
      #B2B

      At IT Minds we create customized internal or #B2B web and mobile apps. I have a go to stack that I pitch to our customers consisting of 3 core areas. 1) A data core #backend . 2) A micro #serverless #backend. 3) A user client #frontend.

      For the Data Core I create a backend using TypeScript Node.js and with TypeORM connecting to a PostgreSQL Exposing an action based api with Apollo GraphQL

      For the micro serverless backend, which purpose is verification for authentication, autorization, logins and the likes. It is created with Next.js api pages. Using MongoDB to store essential information, caching etc.

      Finally the frontend is built with React using Next.js , TypeScript and @Apollo. We create the frontend as a PWA and have a AMP landing page by default.

      See more
      Michael Mota
      Michael Mota
      CEO & Founder at AlterEstate | 4 upvotes 579 views
      Next.js
      Next.js
      Graphene
      Graphene
      GraphQL
      GraphQL
      Django
      Django

      I've been using Django for quite a long time and in my opinion I would never switch from it. My company is currently using Django with REST framework and a part in GraphQL using Graphene. On the frontend we use Next.js and so far everything has been running quite good. I've found limitations but manage to solve it.

      As someone mentioned before, if you are comfortable with Django, don't switch. There's no need since with django you can basically achieve anything. Of course this will depend on the project you want to build, but the scalability and flexibility django can offer it's just out of this world. (Don't want to sound like a fan boy haha but it really is).

      See more
      Interest over time
      Reviews of Next.js and Yii
      No reviews found
      How developers use Next.js and Yii
      Avatar of Felipe Almeida
      Felipe Almeida uses YiiYii

      Yii is great. 90% of the work done by Yii.

      How much does Next.js cost?
      How much does Yii cost?
      Pricing unavailable
      Pricing unavailable
      News about Next.js
      More news
      News about Yii
      More news