by samdark

samdark /yii2-minimal

Yii 2 minimal application template

130 Stars 26 Forks Last release: over 1 year ago (2.0.4) Other 29 Commits 5 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Yii 2 Minimal Application Template

Yii 2 Minimal Application Template is a skeleton Yii 2 application best for starting totally from scratch.

The template contains the basic features including user login/logout. It includes all commonly used configurations that would allow you to focus on adding new features to your application.


  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  models/             contains model classes
  runtime/            contains files generated during runtime
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources


The minimum requirement by this application template that your Web server supports PHP 5.4.0.


If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this application template using the following command:

composer create-project --prefer-dist --stability=dev samdark/yii2-minimal path/to/your/project

Now you should be able to access the application through the following URL, assuming your server webroot is pointed to




Edit the file

with real data, for example:
return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2minimal',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',

NOTES: - Yii won't create the database for you, this has to be done manually before you can access it. - Check and edit the other files in the

directory to customize your application as required.

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.