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

Grails

369
355
+ 1
333
Yii

660
365
+ 1
311
Add tool

Grails vs Yii: What are the differences?

Grails: An Open Source, full stack, web application framework for the JVM. Grails is a framework used to build web applications with the Groovy programming language. The core framework is very extensible and there are numerous plugins available that provide easy integration of add-on features; 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.

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

"Groovy" is the primary reason why developers consider Grails over the competitors, whereas "Open source" was stated as the key factor in picking Yii.

Grails and Yii are both open source tools. Yii with 4.86K GitHub stars and 2.22K forks on GitHub appears to be more popular than Grails with 2.48K GitHub stars and 945 GitHub forks.

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

Decisions about Grails and Yii

This website was originally written in Yii as PHP was my main language back then. After learning Django, I realized just how quickly you could build a web app with less lines. So I migrated my website to Django in a week or two and managed to cut down the lines of code by half. Some of the lines saving came from the models, the views, and the expressiveness of Python. Django requires like config for the models and they provide many generic views that abstracts away common patterns.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Grails
Pros of Yii
  • 56
    Groovy
  • 40
    Jvm
  • 38
    Rapid development
  • 37
    Gorm
  • 30
    Web framework
  • 25
    Open source
  • 21
    Plugins
  • 17
    Extensible
  • 17
    Easy
  • 14
    Dynamic
  • 6
    Clean architecture (Dependency Injection)
  • 6
    Gradle
  • 5
    Clear what everything does, lots of options
  • 4
    RAD
  • 4
    Agile
  • 4
    Great documentation
  • 3
    Android
  • 3
    Spring
  • 2
    Easy setup
  • 1
    Java web apps with steroid
  • 42
    Open source
  • 33
    Code generator
  • 33
    Simple
  • 29
    Active record
  • 26
    Full featured
  • 21
    Documentation
  • 21
    High performance
  • 20
    Rapid development
  • 16
    Flexible
  • 11
    Mvc
  • 10
    Not bloated
  • 8
    Stable Release
  • 8
    Community
  • 8
    Amazing
  • 7
    View Helpers
  • 6
    Modular architecture
  • 6
    Long Term Support
  • 5
    Easy setup, easy develop
  • 1
    Easy

Sign up to add or upvote prosMake informed product decisions

Cons of Grails
Cons of Yii
  • 3
    Frequent breaking changes
  • 2
    Undocumented features
  • 1
    Promotes spagetti code
  • 1
    Unnatural love of arrays
  • 1
    Too Opinionated
  • 1
    Promotes bad practice

Sign up to add or upvote consMake informed product decisions

What is Grails?

Grails is a framework used to build web applications with the Groovy programming language. The core framework is very extensible and there are numerous plugins available that provide easy integration of add-on features.

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.

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

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

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

What tools integrate with Grails?
What tools integrate with Yii?

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

What are some alternatives to Grails and Yii?
Play
Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Akka, Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.
Rails
Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.
Groovy
It is a powerful multi-faceted programming language for the JVM platform. It supports a spectrum of programming styles incorporating features from dynamic languages such as optional and duck typing, but also static compilation and static type checking at levels similar to or greater than Java through its extensible static type checker. It aims to greatly increase developer productivity with many powerful features but also a concise, familiar and easy to learn syntax.
Spring Boot
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
Spring
A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
See all alternatives