PHPackages                             yii-extension/demo - 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. yii-extension/demo

ActiveProject[Framework](/categories/framework)

yii-extension/demo
==================

Yii demo application for active record

529[1 issues](https://github.com/yii-extension/demo/issues)[4 PRs](https://github.com/yii-extension/demo/pulls)CSS

Since Dec 2Pushed 3y ago4 watchersCompare

[ Source](https://github.com/yii-extension/demo)[ Packagist](https://packagist.org/packages/yii-extension/demo)[ RSS](/packages/yii-extension-demo/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

 [ ![](https://github.com/yiisoft.png) ](https://github.com/yiisoft)

Yii application demo for active record
======================================

[](#yii-application-demo-for-active-record)

[![Total Downloads](https://camo.githubusercontent.com/4d073a63930e1007502dfb25613a2b398e57974ac7efe1b837efe5a88019399d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7969692d657874656e73696f6e2f64656d6f)](https://packagist.org/packages/yii-extension/demo)[![build](https://github.com/yii-extension/demo/workflows/build/badge.svg)](https://github.com/yii-extension/demo/actions)[![codecov](https://camo.githubusercontent.com/b24dccf8e2d674b1e247809f48736c8cd0a70cc39c4d2807d25e9da1cd02b1c8/68747470733a2f2f636f6465636f762e696f2f67682f7969692d657874656e73696f6e2f64656d6f2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/yii-extension/demo)[![static analysis](https://github.com/yii-extension/demo/workflows/static%20analysis/badge.svg)](https://github.com/yii-extension/demo/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/2c7a8fb0e975acb7b7424a68d2ad6f3613bebb0415a69717663cd957ffc475e1/68747470733a2f2f73686570686572642e6465762f6769746875622f7969692d657874656e73696f6e2f64656d6f2f636f7665726167652e737667)](https://shepherd.dev/github/yii-extension/demo)

 [ ![](docs\images\home.png) ](https://github.com/yii-extension/app)

Yii demo application for active record with db-sqlite is best for rapidly creating projects.

Directory structure
-------------------

[](#directory-structure)

```
  config/             contains application configurations
  resources/layout    contains layout files for the web application
  resources/mail      contains layout and view files for mailer
  resources/view      contains view files for the web application
  src/                application directory
      Action          contains web action classes
      Asset           contains assets definition
      Form            contains form models
      Module          contains modules application
      Theme           contains theme application
      Service         contains web services
      Widget          continas widgets for web application

```

Requirements
------------

[](#requirements)

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

Installation
------------

[](#installation)

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 --prefer-dist --stability dev yii-extension/demo

```

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

Configuring your application
----------------------------

[](#configuring-your-application)

All the configuration is in the `config directory` of the `application`.

Run command console
-------------------

[](#run-command-console)

```
./yii

```

Run migration
-------------

[](#run-migration)

```
./yii migrate/up

```

Using PHP built-in server
-------------------------

[](#using-php-built-in-server)

```
php -S 127.0.0.1:8080 -t public

```

Wait till it is up, then open the following URL in your browser
---------------------------------------------------------------

[](#wait-till-it-is-up-then-open-the-following-url-in-your-browser)

```
http://localhost:8080

```

Includes the following features:
--------------------------------

[](#includes-the-following-features)

- Admin Panel Dashboard.

    - /index - Display index page.
    - /about - Display about page.
    - /contact - Display contact form page.
- User module:

    - /auth/login - Display login form.
    - /auth/logout - Logs the user out.
    - /recovery/request - Displays recovery request form.
    - /recovery/reset\[/{id}/{code}\] - Displays password reset form (requires id and token query params).
    - /registration/confirm\[/{id}/{token}\] - Confirms a user (requires id and token query params).
    - /registration/register - Displays registration form.
    - /registration/resend - Displays resend form.
    - /admin/index - Display user management interface.
    - /admin/create - Display form register user.
    - /admin/block\[/{id}\] - Allows you to block or unblock a user.
    - /admin/confirm\[/{id}\] - Confirms a user (requires id).
    - /admin/delete\[/{id}\] - Delete a user (requires id).
    - /admin/edit\[/{id}\] - Display form edit user (requires id).
    - /admin/info\[/{id}\] - Display info user (requires id).
    - /admin/reset\[/{id}\] - Send email resend password (requires id).
- Rbac Module:

    - /item/index - Display item management interface.
    - /item/create - Display form create item.
    - /item/edit\[/{id}\] - Display form edit item (requires id).
    - /item/delete\[/{id}\] - Delete a item (requires id).

Note: check the directory `/runtime/mail`, the emails are stored in it.

Codeception testing
-------------------

[](#codeception-testing)

The package is tested with [Codeception](https://github.com/Codeception/Codeception). To run tests:

```
php -S 127.0.0.1:8080 -t public > yii.log 2>&1 &
vendor/bin/codecept run

```

Static analysis
---------------

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/docs). To run static analysis:

```
./vendor/bin/psalm
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/524d2b46690f41fce7188d369488a35e7624e6c5a264d82aacd08548bfd156ab?d=identicon)[terabytesoftw](/maintainers/terabytesoftw)

---

Top Contributors

[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (62 commits)")

---

Tags

activerecordphp8rbacuseryii3

### Embed Badge

![Health badge](/badges/yii-extension-demo/health.svg)

```
[![Health](https://phpackages.com/badges/yii-extension-demo/health.svg)](https://phpackages.com/packages/yii-extension-demo)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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