- Что такое Yii? ¶
- Для каких задач больше всего подходит Yii? ¶
- Сравнение Yii с другими фреймворками ¶
- Версии Yii ¶
- Требования к ПО и знаниям ¶
- What is Yii ¶
- What is Yii Best for? ¶
- How does Yii Compare with Other Frameworks? ¶
- Yii Versions ¶
- Requirements and Prerequisites ¶
- Yes, it is!
- DB and drivers updates
- Redis adapter for cache 2.0.0
- Yii Runner HTTP 2.1.0
- Debug extension 2.1.24 released
- Yes, it is!
- DB and drivers updates
- Redis adapter for cache 2.0.0
- Yii Runner HTTP 2.1.0
- Debug extension 2.1.24 released
Что такое Yii? ¶
Yii – это высокопроизводительный компонентный PHP фреймворк, предназначенный для быстрой разработки современных веб-приложений. Слово Yii (произносится как Йи [ji:] ) в китайском языке означает «простой и эволюционирующий». Также Yii может расшифровываться как акроним Yes It Is!
Для каких задач больше всего подходит Yii? ¶
Yii – это универсальный фреймворк и может быть задействован во всех типах веб-приложений. Благодаря его компонентной структуре и отличной поддержке кэширования, фреймворк особенно подходит для разработки таких крупных проектов, как порталы, форумы, CMS, магазины или RESTful-приложения.
Сравнение Yii с другими фреймворками ¶
Если вы уже знакомы с другими фреймворками, вам наверняка будет интересно сравнить их с Yii.
- Как и многие другие PHP фреймворки, для организации кода Yii использует архитектурный паттерн MVC (Model-View-Controller).
- Yii придерживается философии простого и элегантного кода, не пытаясь усложнять дизайн только ради следования каким-либо шаблонам проектирования.
- Yii является full-stack фреймворком и включает в себя проверенные и хорошо зарекомендовавшие себя возможности, такие как ActiveRecord для реляционных и NoSQL баз данных, поддержку REST API, многоуровневое кэширование и другие.
- Yii отлично расширяем. Вы можете настроить или заменить практически любую часть основного кода. Используя архитектуру расширений, легко делиться кодом или использовать код сообщества.
- Одна из главных целей Yii – производительность.
Yii — не проект одного человека. Он поддерживается и развивается сильной командой и большим сообществом разработчиков, которые ей помогают. Авторы фреймворка следят за тенденциями веб-разработки и развитием других проектов. Наиболее подходящие возможности и лучшие практики регулярно внедряются в фреймворк в виде простых и элегантных интерфейсов.
Версии Yii ¶
На данный момент существует две основные ветки Yii: 1.1 и 2.0. Ветка 1.1 является предыдущим поколением и находится в состоянии поддержки. Версия 2.0 – это полностью переписанный Yii, использующий последние технологии и протоколы, такие как Composer, PSR, пространства имен, трейты и многое другое. 2.0 — текущее поколение фреймворка. На этой версии будут сосредоточены основные усилия несколько следующих лет. Данное руководство именно о версии 2.0.
Требования к ПО и знаниям ¶
Yii 2.0 требует PHP 5.4.0 и выше и наилучшим образом работает на последней версии PHP. Чтобы узнать требования для отдельных возможностей, вы можете запустить скрипт проверки требований, который поставляется с каждым релизом фреймворка.
Для разработки на Yii потребуется общее понимание ООП, так как фреймворк полностью следует этой парадигме. Также стоит изучить такие современные возможности PHP как пространства имён и трейты. Понимание этих концепций позволит вам более легко освоиться c Yii 2.0.
Found a typo or you think this page needs improvement?
Edit it on github !
What is Yii ¶
Yii is a high performance, component-based PHP framework for rapidly developing modern Web applications. The name Yii (pronounced Yee or [ji:] ) means «simple and evolutionary» in Chinese. It can also be thought of as an acronym for Yes It Is!
What is Yii Best for? ¶
Yii is a generic Web programming framework, meaning that it can be used for developing all kinds of Web applications using PHP. Because of its component-based architecture and sophisticated caching support, it is especially suitable for developing large-scale applications such as portals, forums, content management systems (CMS), e-commerce projects, RESTful Web services, and so on.
How does Yii Compare with Other Frameworks? ¶
If you’re already familiar with another framework, you may appreciate knowing how Yii compares:
- Like most PHP frameworks, Yii implements the MVC (Model-View-Controller) architectural pattern and promotes code organization based on that pattern.
- Yii takes the philosophy that code should be written in a simple yet elegant way. Yii will never try to over-design things mainly for the purpose of strictly following some design pattern.
- Yii is a full-stack framework providing many proven and ready-to-use features: query builders and ActiveRecord for both relational and NoSQL databases; RESTful API development support; multi-tier caching support; and more.
- Yii is extremely extensible. You can customize or replace nearly every piece of the core’s code. You can also take advantage of Yii’s solid extension architecture to use or develop redistributable extensions.
- High performance is always a primary goal of Yii.
Yii is not a one-man show, it is backed up by a strong core developer team, as well as a large community of professionals constantly contributing to Yii’s development. The Yii developer team keeps a close eye on the latest Web development trends and on the best practices and features found in other frameworks and projects. The most relevant best practices and features found elsewhere are regularly incorporated into the core framework and exposed via simple and elegant interfaces.
Yii Versions ¶
Yii currently has two major versions available: 1.1 and 2.0. Version 1.1 is the old generation and is now in maintenance mode. Version 2.0 is a complete rewrite of Yii, adopting the latest technologies and protocols, including Composer, PSR, namespaces, traits, and so forth. Version 2.0 represents the current generation of the framework and will receive the main development efforts over the next few years. This guide is mainly about version 2.0.
Requirements and Prerequisites ¶
Yii 2.0 requires PHP 5.4.0 or above and runs best with the latest version of PHP. You can find more detailed requirements for individual features by running the requirement checker included in every Yii release.
Using Yii requires basic knowledge of object-oriented programming (OOP), as Yii is a pure OOP-based framework. Yii 2.0 also makes use of the latest features of PHP, such as namespaces and traits. Understanding these concepts will help you more easily pick up Yii 2.0.
Found a typo or you think this page needs improvement?
Edit it on github !
Yes, it is!
Yii is a fast, secure, and efficient PHP framework.
Flexible yet pragmatic.
Works right out of the box.
Has reasonable defaults.
- MVC
- Some static pages
- Contact via email form
- Login and logout
- Bootstrap UI template
- Powerful debugger
- and more.
While Yii can virtually eliminate most repetitive coding tasks, you are responsible for the real creative work. This often starts with designing the whole system to be built, in terms of some database schema. The best way to do this is by using migrations.
After it’s done, use the code generator to generate models, CRUD and more. Then customize the generated code to suit your needs.
DB and drivers updates
Database package was tagged along with its drivers.
Redis adapter for cache 2.0.0
Version 2.0.0 of Redis adapter for Yii cache was released. In this version:
Yii Runner HTTP 2.1.0
Version 2.1.0 of Yii Runner HTTP was released.
Debug extension 2.1.24 released
Debug extension version 2.1.24 was released.
Covers everything from very basics to advanced topics. Explanations are very clear. Additionally to the guide-style chapters there are two complete examples. The second edition (for Yii 2.0) is not finished yet, but buyers can download updates as they are available.
It is a step by step introduction to the framework, which is based around creating a reusable template that can serve as the basis for your projects.
Based around implementing a real world CRM following many best practices. It is assumed that reader is experienced enough in OOP so don’t expect OO-basics explained.
Embrace 360-degree testing on your Yii 2 projects using Codeception.
The book is a set of individual independent recipes. Each recipe shows how to do something useful with Yii explaining why it’s done, how it’s done, why it works and how exactly it works.
Craft is a content-first CMS that aims to make life enjoyable for developers and content managers alike.
Choosing the right PHP framework was a vital decision when we set out to build Craft. With its elegant, modular architecture, rich internationalization support, and helpful documentation, Yii was a perfect fit. Brandon Kelly
creator of Craft
HumHub is a free social network software and framework built to give you the tools to make communication and collaboration easy and successful.
Yii Framework is our rock solid foundation and provides us with numerous well designed features already out of the box. Especially the flexibility in form of modules or the event concept, perfectly match our requirements. In and above that, Yii has very active and helpful community! Lucas Bartholemy
CEO of HumHub
LUYA is a free and open-source toolbox to build websites and web applications of any size, extending the Yii Framework with an administration, a content management system and other useful modules.
For us, the well-thought-out, solid Yii Framework is the giant upon whose shoulders LUYA is built. We are happy to be a part of the passionate Yii community. Basil Suter
Lead developer of LUYA
Yes, it is!
Yii is a fast, secure, and efficient PHP framework.
Flexible yet pragmatic.
Works right out of the box.
Has reasonable defaults.
- MVC
- Some static pages
- Contact via email form
- Login and logout
- Bootstrap UI template
- Powerful debugger
- and more.
While Yii can virtually eliminate most repetitive coding tasks, you are responsible for the real creative work. This often starts with designing the whole system to be built, in terms of some database schema. The best way to do this is by using migrations.
After it’s done, use the code generator to generate models, CRUD and more. Then customize the generated code to suit your needs.
DB and drivers updates
Database package was tagged along with its drivers.
Redis adapter for cache 2.0.0
Version 2.0.0 of Redis adapter for Yii cache was released. In this version:
Yii Runner HTTP 2.1.0
Version 2.1.0 of Yii Runner HTTP was released.
Debug extension 2.1.24 released
Debug extension version 2.1.24 was released.
Covers everything from very basics to advanced topics. Explanations are very clear. Additionally to the guide-style chapters there are two complete examples. The second edition (for Yii 2.0) is not finished yet, but buyers can download updates as they are available.
It is a step by step introduction to the framework, which is based around creating a reusable template that can serve as the basis for your projects.
Based around implementing a real world CRM following many best practices. It is assumed that reader is experienced enough in OOP so don’t expect OO-basics explained.
Embrace 360-degree testing on your Yii 2 projects using Codeception.
The book is a set of individual independent recipes. Each recipe shows how to do something useful with Yii explaining why it’s done, how it’s done, why it works and how exactly it works.
Craft is a content-first CMS that aims to make life enjoyable for developers and content managers alike.
Choosing the right PHP framework was a vital decision when we set out to build Craft. With its elegant, modular architecture, rich internationalization support, and helpful documentation, Yii was a perfect fit. Brandon Kelly
creator of Craft
HumHub is a free social network software and framework built to give you the tools to make communication and collaboration easy and successful.
Yii Framework is our rock solid foundation and provides us with numerous well designed features already out of the box. Especially the flexibility in form of modules or the event concept, perfectly match our requirements. In and above that, Yii has very active and helpful community! Lucas Bartholemy
CEO of HumHub
LUYA is a free and open-source toolbox to build websites and web applications of any size, extending the Yii Framework with an administration, a content management system and other useful modules.
For us, the well-thought-out, solid Yii Framework is the giant upon whose shoulders LUYA is built. We are happy to be a part of the passionate Yii community. Basil Suter
Lead developer of LUYA