yii

{{short description|Web application framework}}

{{other uses|YII (disambiguation)}}

{{Notability|Product|date=January 2022}}

{{Infobox software

| name = Yii

| logo = Yii-logo-transparent.png

| latest release version = {{Yii version}}

| latest release date = {{Yii version|releasedate}}

| repo = {{URL|https://github.com/yiisoft/yii2|YII Repository}}

| programming language = PHP

| operating system = Cross-platform

| genre = Web application framework

| license = New BSD License

| website = {{URL|http://www.yiiframework.com}}

}}

Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as "Yee" or [ji:] and in Chinese it means "simple and evolutionary" and it can be an acronym for "Yes It Is!".{{cite web|title=About Yii|url=http://www.yiiframework.com/doc-2.0/guide-intro-yii.html|website=Yii2 Guide|publisher=yiisoft}}

History

Yii started as an attempt to fix perceived drawbacks of the PRADO framework: Slow handling of complex pages, steep learning curve and difficulty to customize many controls. In October 2006, after ten months of development, the first alpha version of Yii was released, followed by the formal 1.00 release in December 2008.

Yii 1.1 was released in January 2010 adding a form builder, relational Active record queries, a unit testing framework and more. The Yii community continues to follow the 1.1 branch with PHP7+ support and security fixes. The latest version 1.1.23 was released in December 2020.

In May 2011 the developers decided to use new PHP versions and fix architectural shortcomings, resulting in version 2.0.{{Cite web|title=What's Yii - CyberBukit TTS|url=https://tts.demo.cyberbukit.com/blog/view/whats-yii|access-date=2022-02-22|website=tts.demo.cyberbukit.com}} In May 2013 the Yii 2.0 code went public, followed by the first stable release in October 2014. PHP8 is supported since version 2.0.38.{{Cite web|url=https://github.com/yiisoft/yii2/blob/2.0.38/framework/CHANGELOG.md|title=Yiisoft/Yii2|website=GitHub|date=5 March 2022}} The latest version 2.0.51 was released in July 2024.{{Cite web|title=Yii 2.0.51|url=https://www.yiiframework.com/news/650/yii-2-0-51|access-date=2024-11-27|website=www.yiiframework.com|date=22 May 2023|language=en}}

Version history

class="wikitable"
Color

! Meaning

style="background:Salmon;" | Red

| Old version; no longer supported

style="background:Khaki;" | Yellow

| Old version; still supported

style="background:#a0e75a;" | Green

| Current version

style="background:SkyBlue;" | Blue

| Future version

class="wikitable"
Version

!Release date

!End of active support{{cite web |url=http://www.yiiframework.com/download/ |title=Download Yii Framework |access-date=18 January 2011 }}

!End of security/compatibility support

!Requirement

style="background:Salmon;" | 1.0

| December 3, 2008

| | December 31, 2010

|

| | PHP 5.1.0 or above

style="background:Khaki;" | 1.1

| January 10, 2010

| | December 31, 2016

|December 31, 2026{{cite web |url=https://www.yiiframework.com/news/549/yii-1-1-28-is-released-and-security-support-extended |title=Yii 1.1.28 is released and security support extended |access-date=8 April 2024 }}

| | PHP 5.1.0 or above

style="background:#a0e75a;" | 2.0

| October 12, 2014

| style="font-style:italic;" | TBD

|TBD

| | PHP 5.4.0 or above

style="background:SkyBlue;" | 3.0

| style="font-style:italic;" | TBD

| style="font-style:italic;" | TBD

|TBD

| | PHP 7.4.0 or above

Extensions

The Yii project includes a repository of user-contributed extensions in addition to an official extension library, zii, which was merged with the core framework;{{Cite web|title=Yii|url=https://www.joykal.com/yii/}} it has been bundled in every release since Yii version 1.1.0 and includes additional widgets such as grids and jQuery UI.

See also

References

{{Reflist|30em}}

Bibliography

= Books =

  • {{cite book |last=Merkel |first=Dirk |title=Expert PHP 5 Tools |publisher=Packt Publishing |year=2010 |isbn=978-1-84719-838-9 |chapter=Chapter 6: PHP Frameworks }}
  • {{cite book |last=Winesett |first=Jeffrey |title=Agile Web Application Development with Yii1.1 and PHP5 |url=https://archive.org/details/agilewebapplicat0000wine |url-access=registration |publisher=Packt Publishing |year=2010 |isbn=978-1-84719-958-4 }}
  • {{cite book |last=Makarov |first=Alexander |title=Yii 1.1 Application Development Cookbook |publisher=Packt Publishing |year=2011 |isbn=978-1-84951-548-1 }}
  • {{cite book|last=Ullman|first=Larry|title=The Yii Book|year=2013|publisher=Larry Ullman|url=http://yii.larryullman.com/index.php}}
  • {{cite book |last=Winesett |first=Jeffrey |title=Web Application Development with Yii and PHP|publisher=Packt Publishing |year=2012 |isbn=978-1-84951-872-7 }}
  • {{cite book |last1=O'Meara |first1=Lauren J. |last2=Hamilton III |first2=James R. |title=Yii Rapid Application Development Hotshot|publisher=Packt Publishing |year=2012 |isbn=978-1-84951-750-8}}
  • {{cite book |last=Макаров |first=Александр |title=Yii. Сборник рецептов |publisher=ДМК Пресс |year=2012 |isbn=978-5-94074-786-4 }}
  • {{cite book |last=Sosna|first=Łukasz|title=Yii Framework |publisher=Helion | url=http://helion.pl/ksiazki/yii-framework-lukasz-sosna,yiifra.htm |year=2013 |isbn=978-83-246-7920-1 }}
  • {{cite book |last=Mumm|first=Jacob|title=Instant Yii 1.1 Application Development Starter |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/instant-yii-11-application-development-starter-instant |year=2013 |isbn=978-1-78216-168-4 }}
  • {{cite book |last=Uday|first=Sawant|title=Instant Building Multi-Page Forms with Yii How-to |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/instant-building-multi-page-forms-yii-how-instant |year=2013 |isbn=978-1-78216-642-9 }}
  • {{cite book |last=Safronov|first=Mark |title=Web Application Development with Yii 2 and PHP |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/web-application-development-yii-2-and-php |year=2014 |isbn=978-1-78398-188-5 }}
  • {{cite book |last=Portwood II |first=Charles R. |title=Yii Project Blueprints |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/yii-project-blueprints |year=2014 |isbn= 978-1-78328-773-4 }}
  • {{cite book|last=Keck|first=Bill|title=Yii 2 For Beginners|year=2014|publisher=Leanpub|url=https://leanpub.com/yii2forbeginners}}
  • {{cite book |last=Pescarin|first=Matteo|title=Learning Yii Testing|publisher=Packt Publishing| url=https://www.packtpub.com/web-development/learning-yii-testing |year=2015 |isbn=978-1-78439-227-7 }}
  • {{cite book |last=Portwood II |first=Charles R. |title=Mastering Yii |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/mastering-yii |year=2016 |isbn= 978-1-78588-242-5 }}
  • {{cite book |last1=Bogdanov |first1=Andrew |last2=Eliseev |first2=Dmitry |title=Yii2 Application Development Cookbook - Third Edition |publisher=Packt Publishing | url=https://www.packtpub.com/web-development/yii2-application-development-cookbook-third-edition |year=2016 |isbn= 978-1-78528-176-1 }}

= Journals =

  • {{cite journal |last=Behme |first=Henning |title=World Wide Web |journal=IX |date=January 2009 |publisher=Heise }}
  • {{cite journal |last=Winesett |first=Jeffrey |title=Adding the Yii Framework to Your Web Development Toolbox |journal=PHP|architect |date=March 2009 }}
  • {{cite journal |last=Winesett |first=Jeffrey |title=Yii: Flex Your Flash |journal=PHP|architect |date=July 2009 }}
  • {{cite journal |last=Kreußel |first=Peter |title=PHP-Frameworks im Überblick, Viel Holz für den Rahmen |journal=Linux-Magazin |date=November 2009 |publisher=Linux New Media AG }}
  • {{cite journal |last=Setter|first=Matthew|title=YiiLocal – Find Stuff Near You |journal=PHP|architect |date=December 2010 }}
  • {{cite journal |last=Moorjani|first=Philip|title=Introduction to Yii 2.0 |journal=PHP|architect |date=April 2014 }}