(Translated by https://www.hiragana.jp/)
Yii PHP Framework

Yes, it is!

Yii is a fast, secure, and efficient PHP framework.
Flexible yet pragmatic.
Works right out of the box.
Has reasonable defaults.

  • Step 1
    Installation

    The primary way of installing Yii is by using Composer.

    • Install Composer
    • Get a basic project template
    • Run ./yii serve
  • Welcome Page
    Step 2
    Welcome Page

    You get a nice template which includes:

    • MVC
    • Some static pages
    • Contact via email form
    • Login and logout
    • Bootstrap UI template
    • Powerful debugger
    • and more...
  • Step 3
    Migrations

    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.

  • Gii code generator
    Step 4
    Gii code generator

    After it's done, use the code generator to generate models, CRUD and more.

    Then customize the generated code to suit your needs.

  • Step 5
    Where to go next

    Check these helpful resources:

Yii is Fast
Fast
Yii gives you the maximum functionality by adding the least possible overhead
Yii is Secure
Secure
Sane defaults and built-in tools helps you write solid and secure code
Yii is Efficient
Efficient
Write more code in less time with simple, yet powerful APIs and code generation
Latest News
Oct 30, 2024

Yii Form 1.3

Version 1.3 of Yii Form package is released.

» read more

Oct 29, 2024

Yii HTML 3.8

Version 3.8 of Yii HTML package is released. There are some improvements:

» read more

Oct 28, 2024

Yii Request Provider 1.1

Version 1.1 of Yii Request Provider package is released.

» read more

Oct 18, 2024

Yii Mailer 6 + Yii Mailer Symfony 4

Major versions of Yii Mailer and Yii Mailer Symfony Mailer packages were tagged.

» read more

Read all news
Books and Videos on Yii
Author: Larry Ullman

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.

Author: Bill Keck

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.

Author: Mark Safronov

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.

Author: Matteo Pescarin

Embrace 360-degree testing on your Yii 2 projects using Codeception.

Author: Andrew Bogdanov, Dmitry Eliseev

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.

Testimonials
  • 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

Latest Extensions