PHPackages                             ustadev/yii2basic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ustadev/yii2basic

ActiveProject[Framework](/categories/framework)

ustadev/yii2basic
=================

Yii 2 Basic Project Template. This project is being developed by Jamshidbek Akhlidinov

v1.0.8(1y ago)035MITPHPPHP &gt;=7.4.0CI passing

Since Nov 21Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/JamshidbekAkhlidinov/yii2basic)[ Packagist](https://packagist.org/packages/ustadev/yii2basic)[ Docs](https://ustadev.uz/)[ RSS](/packages/ustadev-yii2basic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (25)Versions (11)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii 2 Basic Project Template
============================

[](#yii-2-basic-project-template)

Yii 2 Basic Project Template is a skeleton [Yii 2](https://www.yiiframework.com/) application best for rapidly creating small projects.

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

[![Latest Stable Version](https://camo.githubusercontent.com/56166ec7b71a001301704f69959dd7b96f39abeb215a390fb4aa25ff239c4289/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757374616465762f7969693262617369632e737667)](https://packagist.org/packages/ustadev/yii2basic)[![Total Downloads](https://camo.githubusercontent.com/91af7937093334ec0f9dd571f2be732e9b3c10640486feb58422c00a3a67b8a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f757374616465762f7969693262617369632e737667)](https://packagist.org/packages/ustadev/yii2basic)[![wakatime](https://camo.githubusercontent.com/25ae563228575b87898b7b8f377e0e8230b7796586087d33fa7e17c1601c8662/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f757365722f64333131306637372d643932362d343233382d386364632d6138393931623636383563302f70726f6a6563742f30313862663134662d323339392d346663342d383635612d3864306638636365636361622e737667)](https://wakatime.com/badge/user/d3110f77-d926-4238-8cdc-a8991b6685c0/project/018bf14f-2399-4fc4-865a-8d0f8cceccab)

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
- yii2basic
|
|-----assets/             contains assets definition
|----- commands/           contains console commands (controllers)
|----- config/             contains application configurations
|----- controllers/        contains Web controller classes
|----- mail/               contains view files for e-mails
|----- models/             contains model classes
|----- modules/            contains admin module and others modules
|          |- admin/        admin module
|          |  |- modules/
|              |-- content/             post,page,post category
|              |-- file/                file management
|              |-- landing element/     frontend view management
|              |-- rbac/
|          |- restapi/       rest api module
|              modules/
|                  v1/
|----- runtime/            contains files generated during runtime
|----- tests/              contains various tests for the basic application
|----- vendor/             contains dependent 3rd-party packages
|----- views/              contains view files for the Web application
      web/                contains the entry script and Web resources

```

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this project template that your Web server supports PHP 7.4.

INSTALLATION
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](https://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](https://getcomposer.org/doc/00-intro.md#installation-nix).

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

```
composer create-project ustadev/yii2basic

```

Now you should be able to access the application through the following URL, assuming `basic` is the directory directly under the Web root.

```
http://localhost/basic/web/

```

### Install from an Archive File

[](#install-from-an-archive-file)

Extract the archive file downloaded from [yiiframework.com](https://www.yiiframework.com/download/) to a directory named `basic` that is directly under the Web root.

Set cookie validation key in `config/web.php` file to some random secret string:

```
'request' => [
    // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
    'cookieValidationKey' => '',
],
```

You can then access the application through the following URL:

```
http://localhost/basic/web/

```

CONFIGURATION
-------------

[](#configuration)

### Database

[](#database)

`config/db.php` copy `config/db_locale.php` and setting this file

```
return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'root',
    'password' => 'rooot',
    'charset' => 'utf8mb4',
];
```

or `.env.dist` file copy `.env` file and settings

```
YII_DEBUG="true"
YII_ENV="dev"

APP_NAME="Admin Panel"

DB_DSN="mysql:host=localhost;dbname=yii2basic"
DB_USERNAME="root"
DB_PASSWORD="root"
DB_CHARSET="utf8mb4"

BOT_TOKEN="token"

MAIL_FROM_EMAIL="mail@gmail.com"
MAIL_FROM_NAME="Name"
MAIL_HOST="smtp.gmail.com"
MAIL_PASSWORD="password"
```

**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 `config/` directory to customize your application as required.
- Refer to the README in the `tests` directory for information specific to basic application tests.

### Runing project

[](#runing-project)

```
php yii serve

```

```
php8.1 yii serve

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance58

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~66 days

Recently: every ~98 days

Total

9

Last Release

375d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37d73d8083b96b2783a16bd865266205e92e4c019271e508435f46d71c37529b?d=identicon)[JamshidbekAkhlidinov](/maintainers/JamshidbekAkhlidinov)

---

Top Contributors

[![JamshidbekAkhlidinov](https://avatars.githubusercontent.com/u/94201013?v=4)](https://github.com/JamshidbekAkhlidinov "JamshidbekAkhlidinov (174 commits)")[![AmiriddinDev](https://avatars.githubusercontent.com/u/132369975?v=4)](https://github.com/AmiriddinDev "AmiriddinDev (52 commits)")

---

Tags

frameworkyii2project templatebasicustadev.uzJamshidbek Akhlidinov

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ustadev-yii2basic/health.svg)

```
[![Health](https://phpackages.com/badges/ustadev-yii2basic/health.svg)](https://phpackages.com/packages/ustadev-yii2basic)
```

###  Alternatives

[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

7031.8M7](/packages/yiisoft-yii2-app-basic)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
