Suyati Technologies
  • SOLUTIONS
    • BUYER RHYTHMS
      • INTEGRATE PLATFORMS
      • ANALYZE DATA
      • ENGAGE CUSTOMERS
  • INDUSTRIES
    • EDUCATION
    • PUBLISHING
    • MEDIA AND ENTERTAINMENT
    • MANUFACTURING
    • RETAIL
    • HEALTHCARE
    • START-UPS
  • PLATFORMS
    • CMS
      • EPISERVER
      • EKTRON
      • SITECORE
      • SITEFINITY
      • KENTICO
      • DRUPAL
      • WORDPRESS
      • JOOMLA
    • CRM
      • SALESFORCE
      • MICROSOFT DYNAMICS CRM
      • SUGARCRM SERVICES
    • ECOMMERCE
      • MAGENTO
      • NOPCOMMERCE
      • COMMERCE SERVER
      • OPENCART
  • TECHNOLOGY
    • MICROSOFT
      • ASP.NET
      • BIZTALK
      • SQL SERVER
      • SHAREPOINT
    • OPEN SOURCE
      • NODE.JS
      • PHP
      • PYTHON
      • RUBY ON RAILS
    • MOBILE
      • WINDOWS
      • ANDROID
      • IOS
    • CLOUD
      • FORCE.COM
      • HEROKU
      • AZURE
      • AMAZON WEB SERVICES
    • BIG DATA
      • BIG DATA SMACK
      • COUCHDB
      • MONGODB
  • TALENT
    • LIFE AT SUYATI
    • TEAM SPEAKS
    • JOB OPENINGS – USA
    • JOB OPENINGS – INDIA
  • ABOUT US
    • OUR STORY
    • ADVISORY BOARD
    • MANAGEMENT TEAM
    • PARTNERS
    • BLOG
    • PRIVACY POLICY
    • CONTACT US
    • TESTIMONIALS
    • ENGAGE WITH US
Suyati Technologies
  • SOLUTIONS
    • BUYER RHYTHMS
      • INTEGRATE PLATFORMS
      • ANALYZE DATA
      • ENGAGE CUSTOMERS
  • INDUSTRIES
    • EDUCATION
    • PUBLISHING
    • MEDIA AND ENTERTAINMENT
    • MANUFACTURING
    • RETAIL
    • HEALTHCARE
    • START-UPS
  • PLATFORMS
    • CMS
      • EPISERVER
      • EKTRON
      • SITECORE
      • SITEFINITY
      • KENTICO
      • DRUPAL
      • WORDPRESS
      • JOOMLA
    • CRM
      • SALESFORCE
      • MICROSOFT DYNAMICS CRM
      • SUGARCRM SERVICES
    • ECOMMERCE
      • MAGENTO
      • NOPCOMMERCE
      • COMMERCE SERVER
      • OPENCART
  • TECHNOLOGY
    • MICROSOFT
      • ASP.NET
      • BIZTALK
      • SQL SERVER
      • SHAREPOINT
    • OPEN SOURCE
      • NODE.JS
      • PHP
      • PYTHON
      • RUBY ON RAILS
    • MOBILE
      • WINDOWS
      • ANDROID
      • IOS
    • CLOUD
      • FORCE.COM
      • HEROKU
      • AZURE
      • AMAZON WEB SERVICES
    • BIG DATA
      • BIG DATA SMACK
      • COUCHDB
      • MONGODB
  • TALENT
    • LIFE AT SUYATI
    • TEAM SPEAKS
    • JOB OPENINGS – USA
    • JOB OPENINGS – INDIA
  • ABOUT US
    • OUR STORY
    • ADVISORY BOARD
    • MANAGEMENT TEAM
    • PARTNERS
    • BLOG
    • PRIVACY POLICY
    • CONTACT US
    • TESTIMONIALS
    • ENGAGE WITH US
Home > Blog > Yii and Phalcon – A comparative study

Yii and Phalcon – A comparative study

by Arun Balakrishnan April 28, 2014
by Arun Balakrishnan April 28, 2014 1 comment

yii vs phalcon
Introduction
In this blog, I present an in-depth, comparative analysis between two top MVC frameworks, YII and Phalcon for PHP. Factors like performance, ease, database handling, ORM and more, have been used to rate them. The intention behind this exercise is to give you a basic picture of ‘Why we choose MVCs for development, and what are the benefits arising from it’. The results are based on both online sources, and my many, day to day experiences at Suyati.
The basics

Yii Phalcon
Yii is a high-performance PHP framework. It is well known for its key features: Fast, secure and high-performance. It is a free and open-source web application development framework written in PHP5 that promotes clean, DRY (Don’t Repeat Yourself) design and encourages rapid development. Phalcon is an open source, full stack framework for PHP5, written as a C-extension, and optimized for high performance. Low-level optimizations provide the lowest overhead for MVC-based applications.

How they work

Yii Phalcon
Yii is much faster, because it uses the lazy loading technique extensively. Going into details, it does not include a class file until the class is used for the first time, and it does not create an object until the object is accessed for the first time. Other frameworks suffer from a performance hit, because they enable functionality, irrespective of whether it is used during a request. Components are loosely coupled. With Phalcon, nothing is imposed on you. It’s free to use as you glue components. It interacts with databases with maximum performance, by using a C-language ORM for PHP. Phalcon directly accesses internal PHP structures, optimizing execution in that way as well.

Performance comparison

Yii Phalcon
Yii framework has a reputation for high-performance. It uses the lazy loading technique extensively. It has powerful caching support. And it is explicitly designed to work efficiently with AJAX. Phalcon is an effort to build the fastest framework for PHP. We now have an even easier and robust way to develop applications with a framework implemented with the philosophy ‘Performance Really Matters’! The compiled nature of Phalcon offers extraordinary performance that outperforms all other frameworks measured in certain benchmarks.

Unit Testing

Yii Phalcon
Yii testing framework is built on top of the PHPUnit. In Yii, the base class CTestCase is meant for generic unit tests, while CDbTestCase is suitable for testing active record model classes. Find more info: http://www.yiiframework.com/doc/guide/1.1/en/test.unit You need to install PHPunit if not already done, using composer. The Phalcon incubator will help you build the unit tests. Find more info: http://docs.phalconphp.com/en/latest/reference/unit-testing.html

Yii V/s Phalcon – comprehensive comparison

Description/Feature Yii Phalcon
Multi-user system Yes Yes
Autofocus Yes Yes
Extension/Plug-in Yes Yes
Image processing engin yes ?
Interpreter Yes ?
Database ˇ      MySQL ˇ      MySQL
ˇ      SQLite ˇ      PostgreSQL
ˇ      MSSQL ˇ      SQLite
ˇ      Oracle ˇ      MongoDB
ˇ      PostgreSQL ˇ      Oracle
Trackback Yes ?
Multilingual content Yes Yes
Database model ˇ      Relational ˇ      Relational
ˇ      Object-oriented ˇ      NoSQL
ˇ      Object-oriented
Transactions Yes Yes
Unicode Yes Yes
Template language ˇ      PHP ˇ      Volt
ˇ      Smarty ˇ      PHP
ˇ      Twig
Full text search Yes ?
Scaffolding Yes Yes
Design pattern ˇ      Active-Record ˇ      Dependency injection
ˇ      Model-View-Controller ˇ      Model-View-Controller
ˇ      DAO ˇ      HMVC
ˇ      HMVC
ˇ      Observer
Development principles ˇ      Convention over configuration ˇ      Convention over configuration
ˇ      Test-driven development ˇ      Don’t repeat yourself
ˇ      Don’t repeat yourself
Difficulty level ˇ      Intermediate ˇ      Beginner
ˇ      Intermediate
Object-Relational Mapping (ORM) Yes Yes
Machine Code Generation Yes ?
Documentation level Very good Very Good
RESTful Yes Yes
Code Generation Yes ?
Free to use Yes Yes
Separate Service Layer Yes ?
Web Flows Yes ?
Community Driven Good Good
WSDL Yes ?
Reliability Very Good ?
API Good Good
Batch Processing Yes ?
Cloud platform support ˇ      Amazon EC2 ˇ      Amazon EC2
ˇ      Amazon S3
ˇ      digital ocean
ˇ      ucloud biz
ˇ      OpenShift
ˇ      Windows Azure
ˇ      Google App Engine
Admin Generator Yes ?
Query Cache Yes ?
Realtime Yes ?
Data Security Yes ?
Malicious Injection Prevention Yes Yes
Perfomance Very Good Very Good
Database migrations Yes Yes
Debug Mode Yes Yes
Unit Testing Yes Yes
Ajax Yes Yes
Extensions 1500+ ?

Conclusion
It’s clear from my experience that Yii’s performance is excellent. It is easy to configure, use and manage projects in Yii. I am new to Phalcon and in fact Phalcon is a comparatively new framework. So its evaluations and review will not help much at this point. But Phalcon is sure to be a trendsetter in the coming days, because it has almost all the cool features of Yii – and Yii is that accepted.
Read More:
http://www.yiiframework.com
http://phalconphp.com/en/
? – As the framework is new, detailed reviews or feedback to rate it is not available.

1 comment
0
FacebookTwitterLinkedinTumblr
previous post
Does LinkedIn present a threat to Salesforce in the CRM space?
next post
How to make friends and be happy. By installing a CRM!

You may also like

The insurer knows your driving more than you...

December 11, 2019

Dreamforce 2019: Here’s What you Missed

December 3, 2019

The Challenges of Delivering Personalized Quotes in Insurance

November 29, 2019

Here’s What the Latest Power BI Desktop Updates...

November 25, 2019

Key Takeaways from DX Summit 2019

November 20, 2019

Shravana Pulari’19 — When Onam came to Suyati...

November 8, 2019

How to optimize your CMS for better customer...

November 6, 2019

Why is Personalized Martech Gaining Popularity?

October 30, 2019

Salesforce Introduces Manufacturing Cloud- A Complete CRM Package

October 30, 2019

Sitecore to Bring in Global Experts: Symposium 2019

October 29, 2019

1 comment

Slav June 20, 2014 - 2:51 pm

Admin Generator = scaffolding ? If so – definitely YES, Query Cache – yes

Reply

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

Keep in touch

Twitter Linkedin Facebook Pinterest

Newsletter

Liked what you are reading?

Please prove you are human by selecting the Plane.

Recent Posts

  • The insurer knows your driving more than you think

    December 11, 2019
  • Dreamforce 2019: Here’s What you Missed

    December 3, 2019
  • The Challenges of Delivering Personalized Quotes in Insurance

    November 29, 2019

Categories

Newsletter

Liked what you are reading?

Please prove you are human by selecting the Star.

  • Twitter
  • Linkedin
  • Facebook
  • Instagram
  • SOLUTIONS
    • BUYER RHYTHMS
      • INTEGRATE PLATFORMS
      • ANALYZE DATA
      • ENGAGE CUSTOMERS
  • INDUSTRIES
    • EDUCATION
    • PUBLISHING
    • MEDIA AND ENTERTAINMENT
    • MANUFACTURING
    • RETAIL
    • HEALTHCARE
    • START-UPS
  • PLATFORMS
    • CMS
      • EPISERVER
      • EKTRON
      • SITECORE
      • SITEFINITY
      • KENTICO
      • DRUPAL
      • WORDPRESS
      • JOOMLA
    • CRM
      • SALESFORCE
      • MICROSOFT DYNAMICS CRM
      • SUGARCRM SERVICES
    • ECOMMERCE
      • MAGENTO
      • NOPCOMMERCE
      • COMMERCE SERVER
      • OPENCART
  • TECHNOLOGY
    • MICROSOFT
      • ASP.NET
      • BIZTALK
      • SQL SERVER
      • SHAREPOINT
    • OPEN SOURCE
      • NODE.JS
      • PHP
      • PYTHON
      • RUBY ON RAILS
    • MOBILE
      • WINDOWS
      • ANDROID
      • IOS
    • CLOUD
      • FORCE.COM
      • HEROKU
      • AZURE
      • AMAZON WEB SERVICES
    • BIG DATA
      • BIG DATA SMACK
      • COUCHDB
      • MONGODB
  • TALENT
    • LIFE AT SUYATI
    • TEAM SPEAKS
    • JOB OPENINGS – USA
    • JOB OPENINGS – INDIA
  • ABOUT US
    • OUR STORY
    • ADVISORY BOARD
    • MANAGEMENT TEAM
    • PARTNERS
    • BLOG
    • PRIVACY POLICY
    • CONTACT US
    • TESTIMONIALS
    • ENGAGE WITH US

© 2019 Suyati Technologies


Back To Top
Suyati Technologies

Popular Posts

  • 1

    What are the Top 3 risks for implementing a CX Program?

    August 30, 2019
  • 2

    How to build Employee Advocacy for your Business?

    September 3, 2019
  • 3

    Do you need a separate CX Team at your company?

    September 2, 2019
  • 4

    What is Salesforce CRM and what does it do?

    February 19, 2014
  • 5

    The Changing Face of Customer Engagement with AI

    August 9, 2019
© 2019 Suyati Technologies

Read alsox

How Digital Transformation Will Create the Future of Retail

March 13, 2018

It’s Official: Open Source is here to stay

May 2, 2012

Is the court ruling against Samsung, the end of Android?

September 12, 2012
Suyati Logo

Technology Insights. Delivered.

Know more about business technology platforms for your enterprise.

Thank you!

We're glad to have you as part of our community. Please feel free to contact us anytime with feedback or suggestions.

Suyati Logo

Leaving So Soon?

Know more about business technology platforms for your enterprise.

Thank you!

We're glad to have you as part of our community. You'll start receiving updates shortly. Please feel free to contact us anytime with feedback or suggestions.

By continuing to use this website you agree with our use of cookies. Read More Agree