Need help with yii-demo?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

220 Stars 88 Forks BSD 3-Clause "New" or "Revised" License 447 Commits 19 Opened issues


Yii 3 demo application

Services available


Need anything else?

Contributors list

Yii Framework

Yii Framework Demo Project

[Yii Framework] is a modern framework designed to be a solid foundation for your PHP application.

It's intended to show and test all Yii features.

Latest Stable Version Total Downloads build Code Coverage static analysis type-coverage


You'll need at least PHP 7.4.

  1. Clone this repository.
  2. Run
    composer update
    in project root directory.
  3. Run
    ./yii serve
    (on Windows
    yii serve
    ). The application will be started on http://localhost:8080/.
  4. Go to index page. Cycle ORM will create tables, indexes and relations automatically in the configured DB. If you want to disable this behavior then comment out line with
    in the
    . In this case you should create migrations to sync changes of entities with DB.
  5. Run
    ./yii fixture/add 20
    to create some random data.


Console works out of the box and could be executed with


Some commands:

fixture/add [count]

In order to register your own commands, add them to


Web application

In order to run web application either built-in web server could be used by running

./yii serve
or a real web server could be pointed to

More routes could be added by editing



The template comes with ready to use Codeception configuration. In order to execute tests run:

composer run serve > ./runtime/yii.log 2>&1 &
vendor/bin/codecept run

Static analysis

The code is statically analyzed with Psalm. To run static analysis:


Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


The Yii Framework Demo Project is free software. It is released under the terms of the BSD License. Please see

for more information.

Maintained by Yii Software.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.