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

Symfony

6.2K
4.7K
+ 1
1.1K
Yii

645
349
+ 1
309
Add tool

Symfony vs Yii: What are the differences?

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

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.

Symfony and Yii belong to "Frameworks (Full Stack)" category of the tech stack.

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

Symfony and Yii are both open source tools. It seems that Symfony with 21.1K GitHub stars and 7.01K forks on GitHub has more adoption than Yii with 4.86K GitHub stars and 2.22K GitHub forks.

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

Advice on Symfony and Yii
Needs advice
on
SymfonySymfonyNode.jsNode.js
and
GolangGolang

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 · 90.6K views
Recommends
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 Symfony and Yii
Danilo Polani
Senior Software Engineer at WeRoad · | 7 upvotes · 42.9K views

For a full-stack app or just simple APIs I'd go 100% with Laravel. You get a clean architecture, beautiful documentation and friendly and always growing community: the project is yours, from A to Z. With their docs and resources like Laracast you can start from zero and build what you want, when you want. The learning curve is definitely smaller when compared to Symfony and, with the help of a bit of "magic" (Facades etc.) you get the same results in the half of the time with cleaner code.

See more

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 Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Symfony
Pros of Yii
  • 173
    Open source
  • 146
    Php
  • 127
    Dependency injection
  • 127
    Community
  • 120
    Professional
  • 78
    Doctrine
  • 72
    Organized
  • 68
    Modular architecture
  • 45
    Smart programming
  • 42
    Solid
  • 18
    Documentation
  • 14
    LTS releases
  • 9
    Easy to Learn
  • 9
    Robust
  • 9
    Decoupled framework components
  • 8
    Bundle
  • 8
    Good practices guideline
  • 8
    Service container
  • 7
    Simple
  • 6
    Powerful
  • 4
    Flexible
  • 42
    Open source
  • 33
    Code generator
  • 33
    Simple
  • 29
    Active record
  • 26
    Full featured
  • 21
    Documentation
  • 21
    High performance
  • 20
    Rapid development
  • 15
    Flexible
  • 10
    Mvc
  • 10
    Not bloated
  • 8
    Stable Release
  • 8
    Amazing
  • 8
    Community
  • 7
    View Helpers
  • 6
    Long Term Support
  • 6
    Modular architecture
  • 5
    Easy setup, easy develop
  • 1
    Easy

Sign up to add or upvote prosMake informed product decisions

Cons of Symfony
Cons of Yii
  • 9
    Too many dependency
  • 7
    Lot of config files
  • 4
    YMAL
  • 2
    Feature creep
  • 1
    Bloated
  • 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 Symfony?

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

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 Symfony?
What companies use Yii?
See which teams inside your own company are using Symfony or Yii.
Sign up for Private StackShareLearn More

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

What tools integrate with Symfony?
What tools integrate with Yii?

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

What are some alternatives to Symfony and Yii?
Laravel
It is a web application framework with expressive, elegant syntax. It attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
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.
Django
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
WordPress
The core software is built by hundreds of community volunteers, and when you’re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine. Over 60 million people have chosen WordPress to power the place on the web they call “home” — we’d love you to join the family.
Phalcon
Phalcon is a web framework implemented as a C extension offering high performance and lower resource consumption.
See all alternatives