PHPackages                             henrydewa/yii2-app-basic - 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. henrydewa/yii2-app-basic

ActiveProject[Framework](/categories/framework)

henrydewa/yii2-app-basic
========================

Yii 2 Basic Application Template With Ready To Use User Model

035PHP

Since Apr 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/HenryDewa/yii2-app-basic)[ Packagist](https://packagist.org/packages/henrydewa/yii2-app-basic)[ RSS](/packages/henrydewa-yii2-app-basic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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 and ready to use User Model.

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
  widgets/            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 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"
php composer.phar create-project --prefer-dist --stability=dev henrydewa/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/

```

Getting started
---------------

[](#getting-started)

After you install the application, you have to conduct the following steps to initialize the installed application. You only need to do these once for all.

1. 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',
];
```

2. Apply migrations with console command `yii migrate`.

**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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e659d2d2ec743c7358d2905b36c2c891b2e1196918d916ca42cbc7acfca19d6?d=identicon)[alvin\_vna](/maintainers/alvin_vna)

---

Top Contributors

[![HenryDewa](https://avatars.githubusercontent.com/u/2367303?v=4)](https://github.com/HenryDewa "HenryDewa (5 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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