PHPackages                             hscstudio/yii2-app-single - 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. hscstudio/yii2-app-single

ActiveProject[Framework](/categories/framework)

hscstudio/yii2-app-single
=========================

Yii 2 Single Project Template

v1.0.0(10y ago)12131BSD-3-ClausePHPPHP &gt;=5.4.0

Since Nov 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/hscstudio/yii2-app-single)[ Packagist](https://packagist.org/packages/hscstudio/yii2-app-single)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/hscstudio-yii2-app-single/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Yii 2 Single Project Template
=============================

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

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

The template is basic with advanced application template features. 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/1110e9d4bed6fcb6a0d6c66c27d9da80543782429b09edfa5741f9c665291eac/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d6170702d62617369632f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-app-basic)[![Total Downloads](https://camo.githubusercontent.com/f49d6ffe358944e26e9c33ba4ce1bd3b1ad26c3ee7282fcd8a58cfe27bce71e6/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d6170702d62617369632f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-app-basic)[![Build Status](https://camo.githubusercontent.com/f32bf420859a803755af4f5c4ad3cbb167c986c8b044c948708f16e8ad26c50f/68747470733a2f2f7472617669732d63692e6f72672f796969736f66742f796969322d6170702d62617369632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiisoft/yii2-app-basic)

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
  migrations/         contains database migrations
  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 project 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.

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/single/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 project template using the following command:

```
php composer.phar global require "fxp/composer-asset-plugin:~1.1.0"
php composer.phar create-project --prefer-dist --stability=dev hscstudio/yii2-app-single single

```

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

[](#configuration)

### Database

[](#database)

Create a new database and adjust the components\['db'\] configuration the file `config/db.php` with real data, for example:

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

Apply migrations with console command

`yii migrate`

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

```
http://localhost/single/web/

```

**NOTES:**

- Check and edit the other files in the `config/` directory to customize your application as required.
- Refer to the README in the `tests` direcotry for information specific to basic application tests.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/abb981dd0ea03974df1363d4c0eeed1b4dafeea047ad68ec31f02e3f63e3e530?d=identicon)[hscstudio](/maintainers/hscstudio)

---

Top Contributors

[![hscstudio](https://avatars.githubusercontent.com/u/2976897?v=4)](https://github.com/hscstudio "hscstudio (1 commits)")

---

Tags

frameworkyii2project templatesingle

### Embed Badge

![Health badge](/badges/hscstudio-yii2-app-single/health.svg)

```
[![Health](https://phpackages.com/badges/hscstudio-yii2-app-single/health.svg)](https://phpackages.com/packages/hscstudio-yii2-app-single)
```

###  Alternatives

[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1291.9k](/packages/izyue-yii2-app-advanced)[yii2mod/base

Base application template for Yii2

531.3k](/packages/yii2mod-base)

PHPackages © 2026

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