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

    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

    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
Yii gives you the maximum functionality by adding the least possible overhead
Yii is Secure
Sane defaults and built-in tools helps you write solid and secure code
Yii is Efficient
Write more code in less time with simple, yet powerful APIs and code generation
Latest News
Aug 9, 2022

ElasticSearch extension 2.1.3 released

We are very pleased to announce the release of ElasticSearch extension version 2.1.3. This release:

» read more

Aug 5, 2022

Yii Middleware Dispatcher 2.1.0

Version 2.1.0 of Yii Middleware Dispatcher package was tagged. There a few enhancements.

» read more

Aug 5, 2022

Yii Console 1.3.0

Version 1.3.0 of Yii Console package was tagged. This version adds collecting console command name to ApplicationStartup class.

» read more

Aug 5, 2022

Yii Console Runner 1.1.0

Version 1.1.0 of Yii Console Runnner package was tagged. This version adds passing input aggregate to the console application.

» 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.

  • 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
  • floor12/yii2-summernote

    This Yii2 component helps to organize page title, meta tags and `og` and `twitter` open graph tags in with a fiew lines of code.

  • tjura/yii2-migration-helper

    Interactive migration generator for Yii2

  • floor12/yii2-phone

    Yii2 phone formatter and validator.

  • thangnm93/yii2-decomposer

    A Yii2 package to decompose your installed packages, their dependencies, your app & server environment

  • pelock/yii2-anti-spam-form

    Anti-Spam Form is a form replacement component for the Yii2 Framework for creating anti-spam forms that are invisible in HTML...

  • evermos/yii2-sendgrid

    Yii2 Mailer extension for SendGrid with batch mailing support. This extension is designed to replace them all! The only Yii2 ...