PHPackages                             aka03/yii2-rest - 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. aka03/yii2-rest

ActiveProject[Framework](/categories/framework)

aka03/yii2-rest
===============

Yii 2 Basic Project Template

v1.0.0(6y ago)02[1 PRs](https://github.com/aka03/yii2-rest/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Dec 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aka03/yii2-rest)[ Packagist](https://packagist.org/packages/aka03/yii2-rest)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/aka03-yii2-rest/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (11)Versions (3)Used By (0)

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

Yii 2 REST
==========

[](#yii-2-rest)

Yii 2 Basic Project Template is a skeleton [Yii 2](http://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/46cc517e06dacd4b704b373dddb7bf3ca5e95e13a167c53be1bc0f4360a88a04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969736f66742f796969322d6170702d62617369632e737667)](https://packagist.org/packages/yiisoft/yii2-app-basic)[![Total Downloads](https://camo.githubusercontent.com/94888011ac494bc9509c512d0c4470390af0655c8418781e58f106e9da85b53d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969736f66742f796969322d6170702d62617369632e737667)](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
  models/             contains model classes
  modules/            contains API application
  rbac/               contains RBAC settings
  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 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:

```
composer create-project aka03/yii2-rest

```

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](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/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=yii2rest',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];
```

Use migrations

```
yii migrate

```

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

USERS
-----

[](#users)

```
{
  "first_name": "admin",
  "last_name": "admin",
  "patronymic_name": "admin",
  "login": "admin",
  "password": "adminPass",
  "email": "admin@admin.com"
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1decd9eb4affc8071e0ec01bcb93dda8f848560e1d8e732f8fa3c8a49552691e?d=identicon)[aka03](/maintainers/aka03)

---

Top Contributors

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

---

Tags

frameworkyii2project templatebasic

### Embed Badge

![Health badge](/badges/aka03-yii2-rest/health.svg)

```
[![Health](https://phpackages.com/badges/aka03-yii2-rest/health.svg)](https://phpackages.com/packages/aka03-yii2-rest)
```

###  Alternatives

[developeruz/yii-vue-app

Yii 2 + Vue.js Basic Project Template

1221.6k](/packages/developeruz-yii-vue-app)[yii2mod/base

Base application template for Yii2

531.3k](/packages/yii2mod-base)

PHPackages © 2026

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