Get Advice Icon

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

Spring
Spring

2.2K
1.9K
+ 1
974
Yii
Yii

520
232
+ 1
266
Add tool

Spring vs Yii: What are the differences?

Developers describe Spring as "Provides a comprehensive programming and configuration model for modern Java-based enterprise applications". 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. On the other hand, Yii is detailed as "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.

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

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

Spring and Yii are both open source tools. Spring with 30.1K GitHub stars and 19.2K forks on GitHub appears to be more popular than Yii with 4.87K GitHub stars and 2.21K GitHub forks.

According to the StackShare community, Spring has a broader approval, being mentioned in 316 company stacks & 179 developers stacks; compared to Yii, which is listed in 48 company stacks and 29 developer stacks.

What is 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.

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 Spring?
Why do developers choose Yii?

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

    Be the first to leave a con
    What companies use Spring?
    What companies use Yii?

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

    What tools integrate with Spring?
    What tools integrate with Yii?

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

    What are some alternatives to Spring and Yii?
    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.
    Foundation
    Foundation is the most advanced responsive front-end framework in the world. You can quickly prototype and build sites or apps that work on any kind of device with Foundation, which includes layout constructs (like a fully responsive grid), elements and best practices.
    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.
    ASP.NET
    .NET is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.
    Django
    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    See all alternatives
    Decisions about Spring and Yii
    Buzz Zhang
    Buzz Zhang
    CTO at Qiban ยท | 4 upvotes ยท 62.6K views
    PHP
    PHP
    Yii
    Yii
    MySQL
    MySQL
    PHP-MVC
    PHP-MVC

    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
    Interest over time
    Reviews of Spring and Yii
    No reviews found
    How developers use Spring and Yii
    Avatar of datapile
    datapile uses SpringSpring

    Spring is another gift rained down by the gods of Open Source Software (a.k.a. Pivotal Labs in this particular case) that just makes sense on all levels.

    From Spring Boot, to SpringMVC, the configuration architecture & profile paradigm, Spring Cloud expandability, to the ease with which one can deploy Spring applets as microservices within Docker is an absolute joy.

    Avatar of Giovanni Candido da Silva
    Giovanni Candido da Silva uses SpringSpring

    The core of the application use Spring Stack, to provide services and structure like:

    • Persistence
    • REST
    • Email
    • Security
    • Self contained application with spring boot
    • And many others.
    Avatar of Kang Hyeon Ku
    Kang Hyeon Ku uses SpringSpring

    ๊ทธ๋ƒฅ ๊ฐ„๋‹จํ•œ MVC ์›น ํ”„๋ ˆ์ž„ ์›Œํฌ ์ธ์ค„ ์•Œ์•˜๋Š”๋ฐ ์ •๋ง ๋ชจ๋“ˆํ™”๊ฐ€ ์ž˜ ๋˜์žˆ๊ณ , ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ๊ฐœ๋ฐœ์ž์—๊ฒŒ ์ •๋ง ํŽธ๋ฆฌํ•˜๊ฒŒ ๋งŒ๋“ค์–ด ๋†“์•˜๋‹ค. vaildation ๋ถ€๋ถ„์€ ๋”ฐ๋กœ ์ฒ˜๋ฆฌ ํ•  ์ˆ˜ ์žˆ๊ณ , ํŒŒ๋ผ๋ฏธํ„ฐ ๋‹ด๋Š” ๋ณ€์ˆ˜์™€ ๋””ํดํŠธ ๊ฐ’์„ ์ธ์ž๋กœ ์„ค์ •ํ•ด ์ฃผ๋Š” ๋ถ€๋ถ„๋„ ์ฐธ ์ข‹์€ ๊ฒƒ ๊ฐ™๋‹ค. ๋˜ spring-data ๋Š” jpa ํ™œ์šฉํ•ด ๋น ๋ฅด๊ฒŒ ๊ฐœ๋ฐœํ•˜๋Š”๋ฐ ์œ ์šฉํ•˜๋‹ค.

    Avatar of ByeongGi
    ByeongGi uses SpringSpring
    • SpringFramework ์ค‘ MVC , AOP ๋“ฑ์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ”„๋กœ์ ํŠธ ๊ตฌ์„ฑ
    • ๊ณตํ†ต ๋กœ์ง ๊ตฌํ˜„ ๋ฐ ๋ณด์•ˆ ์ฒ˜๋ฆฌ ๊ฐ€๋Šฅ

    • Spring5์—์„œ ์ง€์›ํ•˜๋Š” ํ•จ์ˆ˜ํ˜• ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ฒฝํ—˜ ์žˆ์Œ

    Avatar of Ralic Lo
    Ralic Lo uses SpringSpring

    Used Spring Boot and its ORM to interacting with database server for web application development.

    Avatar of Felipe Almeida
    Felipe Almeida uses YiiYii

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

    How much does Spring cost?
    How much does Yii cost?
    Pricing unavailable
    Pricing unavailable
    News about Yii
    More news