PHPackages                             yiiman/yii2-app-console - 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. yiiman/yii2-app-console

ActiveProject[Framework](/categories/framework)

yiiman/yii2-app-console
=======================

Simple Yii 2 Console Project Template

1.0(8y ago)201BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jan 23Pushed 4y agoCompare

[ Source](https://github.com/Yiiman-cms/yii2-app-console)[ Packagist](https://packagist.org/packages/yiiman/yii2-app-console)[ Docs](https://github.com/adlandh/yii2-app-console)[ RSS](/packages/yiiman-yii2-app-console/feed)WikiDiscussions master Synced 1mo ago

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

Simple Yii 2 Console Project Template
=====================================

[](#simple-yii-2-console-project-template)

Simple Yii 2 Console Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for rapidly creating console applications.

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

[](#directory-structure)

```
  commands/           contains console commands (controllers)
  config/             contains application configurations
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  vendor/             contains dependent 3rd-party packages

```

REQUIREMENTS
------------

[](#requirements)

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

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:

```
php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
php composer.phar create-project --prefer-dist --stability=dev yiiman/yii2-app-console console

```

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

[](#configuration)

### Config DataBase

[](#config-database)

Change `.env-example` name to `.env`

Edit the file `.env` with real data

Use commands
------------

[](#use-commands)

Type `php yii` in console to see commands

**NOTE:**

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

Learning and usage
------------------

[](#learning-and-usage)

- [Learn on Yii framework site](https://www.yiiframework.com/doc/guide/2.0/en/tutorial-console)
- [Learn on youtube](https://www.youtube.com/watch?v=HG6omaMRx_k&list=PLAUvAGgAbomAF0cQ2ubwJYDJKFrmHREjm)

### Lesson 1

[](#lesson-1)

Install this project: [![Create console app with php](https://camo.githubusercontent.com/162552f1d5ff59d50d83dbde2895bd44f64409339f9f3d24c2e6bc1a4a68366d/687474703a2f2f696d672e796f75747562652e636f6d2f76692f4847366f6d614d52785f6b2f302e6a7067)](http://www.youtube.com/watch?v=HG6omaMRx_k "Create console app with php")

### Lesson 2

[](#lesson-2)

Create first custom command on console: [![Create console app with php - custom command](https://camo.githubusercontent.com/d7e21aa55beba661c779a274fe28f3f61a023db0d8cc6480dffe6b97fe8155ea/687474703a2f2f696d672e796f75747562652e636f6d2f76692f765665684b6f76575777552f302e6a7067)](http://www.youtube.com/watch?v=vVehKovWWwU "Create console app with php - custom command")

### Lesson 3

[](#lesson-3)

Crawl simple data from Github pages [![Create console app with php - Crawl simple data from Github pages](https://camo.githubusercontent.com/83f0aa793be2d3e50c462daaba6c1dc43c594f7d1e591ec10bbf09f05ea7cdac/687474703a2f2f696d672e796f75747562652e636f6d2f76692f6c6843436662736c4f316f2f302e6a7067)](http://www.youtube.com/watch?v=lhCCfbslO1o "Create console app with php - Crawl simple data from Github pages")

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~77 days

Total

3

Last Release

3240d ago

Major Versions

0.2 → 1.02017-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/289bca70798b2ce7dadc6fbe072bf8c2ffea21ef7db91a5a2659129b34ca9e4e?d=identicon)[yiiman](/maintainers/yiiman)

---

Top Contributors

[![yiiman-dev](https://avatars.githubusercontent.com/u/11722893?v=4)](https://github.com/yiiman-dev "yiiman-dev (8 commits)")[![adlandh](https://avatars.githubusercontent.com/u/5467487?v=4)](https://github.com/adlandh "adlandh (3 commits)")

---

Tags

consoleframeworkyii2project template

### Embed Badge

![Health badge](/badges/yiiman-yii2-app-console/health.svg)

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

PHPackages © 2026

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