PHPackages                             oleg-p/yii2-app-basic-tunning - 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. oleg-p/yii2-app-basic-tunning

ActiveProject[Framework](/categories/framework)

oleg-p/yii2-app-basic-tunning
=============================

Tunning for Yii 2 Basic Application Template

v1.0.2(11y ago)091BSD-3-ClausePHPPHP &gt;=5.4.0

Since Feb 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/oleg-p/yii2-app-basic-tunning)[ Packagist](https://packagist.org/packages/oleg-p/yii2-app-basic-tunning)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/oleg-p-yii2-app-basic-tunning/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

Yii 2 Basic Application Template
================================

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

Yii 2 Basic Application Template is a skeleton Yii 2 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.

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

[](#directory-structure)

```
  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
  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 application template that your Web server supports PHP 5.4.0.

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

[](#installation)

### Install from an Archive File

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

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

You can then access the application through the following URL:

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

```

### Install via Composer

[](#install-via-composer)

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

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

```
php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic

```

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/

```

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

[](#configuration)

### Database

[](#database)

Edit the file `config/db.php` with real data, for example:

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

**NOTE:** Yii won't create the database for you, this has to be done manually before you can access it.

Also check and edit the other files in the `config/` directory to customize your application.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e857a55335d4d21bea61bb659d55fd3fab2bef605a05a0f1de93242fb0d8bcd?d=identicon)[oleg-p](/maintainers/oleg-p)

---

Top Contributors

[![oleg-p](https://avatars.githubusercontent.com/u/7285991?v=4)](https://github.com/oleg-p "oleg-p (4 commits)")

---

Tags

frameworkyii2basicapplication templatetunning basic template

### Embed Badge

![Health badge](/badges/oleg-p-yii2-app-basic-tunning/health.svg)

```
[![Health](https://phpackages.com/badges/oleg-p-yii2-app-basic-tunning/health.svg)](https://phpackages.com/packages/oleg-p-yii2-app-basic-tunning)
```

###  Alternatives

[nenad/yii2-basic-template

Improved Yii 2 Basic Application Template By Nenad Zivkovic

496.5k](/packages/nenad-yii2-basic-template)[kartik-v/yii2-app-practical-b

Yii 2 Practical-B Application Template

312.7k](/packages/kartik-v-yii2-app-practical-b)[funson86/yii2-adminlte

Yii 2 Advanced Application Template with Adminlte Theme

1492.2k](/packages/funson86-yii2-adminlte)[yii2mod/base

Base application template for Yii2

531.3k](/packages/yii2mod-base)

PHPackages © 2026

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