SlideShare a Scribd company logo
Why Yii?
Presenter: Naincy Gupta
Mindfire Solutions
 Introduction
 Architecture
 Technologies
 Features of Yii
 Comparison with other PHP Frameworks
 Why to choose?
Agenda
Introduction
YII is a framework for creating Web applications using PHP 5 (or
greater).

High-performance framework and good for developing Web applications.

YII Framework is best because it is based on DRY (Don't repeat
yourself) design pattern that is why is called fast application
development framework.

YII is designed from the beginning to fit for serious Web application
development.

YII is a pure OOP framework.
Architecture
Architecture Flow:
1.) Pre-initialize the application with CApplication::preinit();
2.) Set up class autoloader and error handling
3.) Register core application components
4.) Load application configuration
5.) Initialize the application
- Register application behaviours
- Load static application components
6.) Raise on Begin Request event
7.) Process the user request
- Resolve the user request
- Create controller
- Run controller
Technologies
YII built with help of Qiang Xue made use of severa; other web technologies to
enhance power of YII Qiang Xue used.
PRADO is major source in development of YII
YII referenced its implementation of the active recprd design pattern for its
ORM layer.
Joomla and Symphony were also used in development in YII
jQuery is integrated in YII
Features of YII

Great Integration with industry standards CSS and JS frameworks like jQuery,
BootStrap, etc. Made it easy to create modern responsive designs.

YII also hepls in maintaining the application design as recommended by YII, which
helps in maintaining application security.

Migration utility provide great control over Database changes, will help us to upgrade /
downgrade application version on differnt installations.

Large collection of widgets and third party components.

Custom Theme Management

YII caching support is very handy with high traffic websites

Unit Testing Frameworks
- PHP5 MVC - Powerful Cache
- Nice API - RBAC, auth framework
- Migrations - Console
- Form Builder - Error Handler, Log
- Themes - GII
- Test Framework - Widgets
- Well documented - Friendly community
Comparison
with other
Frameworks
Features YII Laravel Symphony2 CI
Version 1.1.14 4.1.24 2.4 2.1.4
Requirement >= PHP 5.1.0 >= 5.3.7 with
mcrypt ext.
>=PHP5.3.2 >= PHP 5.1.6
Cache Storage APC,
MemCache,
XCache,
ZendPlatform
File System,
Database,
Memcached,
APC, Redis,
Xcache,
WinCache,
Memory
APC,
eAccelerator,
XCache
File, apc,
memcached,
xcache
Testing Library PHPUnit,
Selenium
PHPUNIT PHPUNIT PHPUnit (In
development)
Security XSS, Xsrf, Sql
Injection
XSS, Xsrf, Sql
Injection
XSS, Xsrf, Sql
Injection
XSS, Xsrf, Sql
Injection
Template
System
PHP and
Prado's -
Others using
Ext. (Razor,
Smarty, Twig,
etc)
Blade, PHP,
Custom
PHP, Twig PHP, Simple
template
parser
"{var_name}"
Logging
Management
Yes Yes PSR-3
compliant
Why to Choose??
When we choose any Framework for development then what we want:
- development should be staright forward
- Not do complex stuff for web apps
- Easy Learning and easy to debug and fix.
- Less configuration
- As simple API possible
Here, answer is YII.
Yii has all these features and many more benefits that we already
discussed. Some more benefits are:
- Easy to customize the application as per customers requirements.
- Provides great command line tool that help us create complicated CRON jobs.
- Data Cache and Performance
Questions??
Mail me your questions at nansee1804@gmail.com
Thank you

More Related Content

What's hot (20)

PPTX
Getting started with entity framework
Lushanthan Sivaneasharajah
 
PPTX
Flask – Python
Max Claus Nunes
 
PPTX
Hibernate ppt
Aneega
 
PPTX
Chapter2 j2ee
Jafar Nesargi
 
PPTX
Php Framework
cncwebworld
 
PPTX
Php.ppt
Nidhi mishra
 
PDF
API : l'architecture REST
Fadel Chafai
 
PPT
JavaScript - An Introduction
Manvendra Singh
 
PPTX
Java Server Pages
Kasun Madusanke
 
PDF
Spark SQL
Joud Khattab
 
PPTX
Files in php
sana mateen
 
PDF
A seminar report on core java
Aisha Siddiqui
 
PDF
Tp4 - PHP
Lilia Sfaxi
 
PDF
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
PPTX
C# web api
Simplilearn
 
PDF
Spring Boot
koppenolski
 
PPT
Introduction to PHP
Jussi Pohjolainen
 
Getting started with entity framework
Lushanthan Sivaneasharajah
 
Flask – Python
Max Claus Nunes
 
Hibernate ppt
Aneega
 
Chapter2 j2ee
Jafar Nesargi
 
Php Framework
cncwebworld
 
Php.ppt
Nidhi mishra
 
API : l'architecture REST
Fadel Chafai
 
JavaScript - An Introduction
Manvendra Singh
 
Java Server Pages
Kasun Madusanke
 
Spark SQL
Joud Khattab
 
Files in php
sana mateen
 
A seminar report on core java
Aisha Siddiqui
 
Tp4 - PHP
Lilia Sfaxi
 
What is REST API? REST API Concepts and Examples | Edureka
Edureka!
 
C# web api
Simplilearn
 
Spring Boot
koppenolski
 
Introduction to PHP
Jussi Pohjolainen
 

Viewers also liked (13)

PPTX
Yii framework
Leena Roja
 
PPT
Yii framework
Pratik Gondaliya
 
PDF
Introduction Yii Framework
Tuan Nguyen
 
PPTX
yii framework
Akhil Kumar
 
KEY
Yii Framework
Jason Ragsdale
 
PPSX
Yii framework
Mohammed Saqib
 
PDF
FUTEX 2015 Programme gb
FUTEX CONVENTION
 
PPTX
A site in 15 minutes with yii
Andy Kelk
 
PPT
Nram presentation 3
Prince Jairaj
 
PDF
Yii Framework Security
Ilko Kacharov
 
PDF
Futex Scaling for Multi-core Systems
Davidlohr Bueso
 
PPTX
Why choose Yii framework?
goodcore
 
PPTX
Slideshare ppt
Mandy Suzanne
 
Yii framework
Leena Roja
 
Yii framework
Pratik Gondaliya
 
Introduction Yii Framework
Tuan Nguyen
 
yii framework
Akhil Kumar
 
Yii Framework
Jason Ragsdale
 
Yii framework
Mohammed Saqib
 
FUTEX 2015 Programme gb
FUTEX CONVENTION
 
A site in 15 minutes with yii
Andy Kelk
 
Nram presentation 3
Prince Jairaj
 
Yii Framework Security
Ilko Kacharov
 
Futex Scaling for Multi-core Systems
Davidlohr Bueso
 
Why choose Yii framework?
goodcore
 
Slideshare ppt
Mandy Suzanne
 
Ad

Similar to Introduction to YII framework (20)

PDF
Yii vs codeigneiter
Luis Alberto Rodriguez
 
PPT
10 reasons to choose the yii framework
jananya213
 
PDF
Introduce Yii
zakieh alizadeh
 
PPTX
Yii Development
jananya213
 
PDF
Why Choose Yii Framework for Your Next Web Development Project?
Windzoon Technologies
 
PPTX
Php Web Frameworks
Shreyans Jasoriya
 
PPTX
Introduction to Yii & performance comparison with Drupal
cadet018
 
PPTX
P H P Framework
Animesh Kumar
 
ODP
Yii Framework - Do we really need another php framework?
Joachim Eckert
 
PDF
Top 6 leading PHP frameworks for web development
Appfinz Technologies
 
PDF
Yii web application development company
Enuke Software Pvt Ltd
 
PPTX
PHP framework difference
iScripts
 
PDF
Yii Framework in the RAD context + Mashup demo built on YII
George-Leonard Chetreanu
 
PDF
Best PHP Frameworks
Clixlogix Technologies
 
PPT
Yii workshop
Simone Gentili
 
PDF
Top 10 best PHP frameworks for web development.pdf
Moon Technolabs Pvt. Ltd.
 
PDF
Yii, frameworks and where PHP is heading to
Alexander Makarov
 
PDF
Devconf 2011 - PHP - How Yii framework is developed
Alexander Makarov
 
PDF
The distinct advantages of using PHP-Symfony Framework
Mindfire LLC
 
PPTX
yii1
Rajat Gupta
 
Yii vs codeigneiter
Luis Alberto Rodriguez
 
10 reasons to choose the yii framework
jananya213
 
Introduce Yii
zakieh alizadeh
 
Yii Development
jananya213
 
Why Choose Yii Framework for Your Next Web Development Project?
Windzoon Technologies
 
Php Web Frameworks
Shreyans Jasoriya
 
Introduction to Yii & performance comparison with Drupal
cadet018
 
P H P Framework
Animesh Kumar
 
Yii Framework - Do we really need another php framework?
Joachim Eckert
 
Top 6 leading PHP frameworks for web development
Appfinz Technologies
 
Yii web application development company
Enuke Software Pvt Ltd
 
PHP framework difference
iScripts
 
Yii Framework in the RAD context + Mashup demo built on YII
George-Leonard Chetreanu
 
Best PHP Frameworks
Clixlogix Technologies
 
Yii workshop
Simone Gentili
 
Top 10 best PHP frameworks for web development.pdf
Moon Technolabs Pvt. Ltd.
 
Yii, frameworks and where PHP is heading to
Alexander Makarov
 
Devconf 2011 - PHP - How Yii framework is developed
Alexander Makarov
 
The distinct advantages of using PHP-Symfony Framework
Mindfire LLC
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 

Introduction to YII framework

  • 1. Why Yii? Presenter: Naincy Gupta Mindfire Solutions
  • 2.  Introduction  Architecture  Technologies  Features of Yii  Comparison with other PHP Frameworks  Why to choose? Agenda
  • 3. Introduction YII is a framework for creating Web applications using PHP 5 (or greater).  High-performance framework and good for developing Web applications.  YII Framework is best because it is based on DRY (Don't repeat yourself) design pattern that is why is called fast application development framework.  YII is designed from the beginning to fit for serious Web application development.  YII is a pure OOP framework.
  • 5. Architecture Flow: 1.) Pre-initialize the application with CApplication::preinit(); 2.) Set up class autoloader and error handling 3.) Register core application components 4.) Load application configuration 5.) Initialize the application - Register application behaviours - Load static application components 6.) Raise on Begin Request event 7.) Process the user request - Resolve the user request - Create controller - Run controller
  • 6. Technologies YII built with help of Qiang Xue made use of severa; other web technologies to enhance power of YII Qiang Xue used. PRADO is major source in development of YII YII referenced its implementation of the active recprd design pattern for its ORM layer. Joomla and Symphony were also used in development in YII jQuery is integrated in YII
  • 7. Features of YII  Great Integration with industry standards CSS and JS frameworks like jQuery, BootStrap, etc. Made it easy to create modern responsive designs.  YII also hepls in maintaining the application design as recommended by YII, which helps in maintaining application security.  Migration utility provide great control over Database changes, will help us to upgrade / downgrade application version on differnt installations.  Large collection of widgets and third party components.  Custom Theme Management  YII caching support is very handy with high traffic websites  Unit Testing Frameworks
  • 8. - PHP5 MVC - Powerful Cache - Nice API - RBAC, auth framework - Migrations - Console - Form Builder - Error Handler, Log - Themes - GII - Test Framework - Widgets - Well documented - Friendly community
  • 10. Features YII Laravel Symphony2 CI Version 1.1.14 4.1.24 2.4 2.1.4 Requirement >= PHP 5.1.0 >= 5.3.7 with mcrypt ext. >=PHP5.3.2 >= PHP 5.1.6 Cache Storage APC, MemCache, XCache, ZendPlatform File System, Database, Memcached, APC, Redis, Xcache, WinCache, Memory APC, eAccelerator, XCache File, apc, memcached, xcache Testing Library PHPUnit, Selenium PHPUNIT PHPUNIT PHPUnit (In development) Security XSS, Xsrf, Sql Injection XSS, Xsrf, Sql Injection XSS, Xsrf, Sql Injection XSS, Xsrf, Sql Injection Template System PHP and Prado's - Others using Ext. (Razor, Smarty, Twig, etc) Blade, PHP, Custom PHP, Twig PHP, Simple template parser "{var_name}" Logging Management Yes Yes PSR-3 compliant
  • 11. Why to Choose?? When we choose any Framework for development then what we want: - development should be staright forward - Not do complex stuff for web apps - Easy Learning and easy to debug and fix. - Less configuration - As simple API possible Here, answer is YII. Yii has all these features and many more benefits that we already discussed. Some more benefits are: - Easy to customize the application as per customers requirements. - Provides great command line tool that help us create complicated CRON jobs. - Data Cache and Performance