PHPackages                             agungsijawir/yii2-minimal-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. agungsijawir/yii2-minimal-console

ActiveProject[Framework](/categories/framework)

agungsijawir/yii2-minimal-console
=================================

Yii 2 minimal Console Application Template

2.0.5(5y ago)09BSD-3-ClausePHPPHP &gt;=7.4.0

Since Nov 5Pushed 4y agoCompare

[ Source](https://github.com/agungsijawir/yii2-minimal-console)[ Packagist](https://packagist.org/packages/agungsijawir/yii2-minimal-console)[ Docs](https://github.com/agungsijawir/yii2-minimal-console)[ GitHub Sponsors](https://github.com/samdark)[ Patreon](https://www.patreon.com/samdark)[ RSS](/packages/agungsijawir-yii2-minimal-console/feed)WikiDiscussions master Synced 4d ago

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

Yii 2 Minimal Console Application Template
==========================================

[](#yii-2-minimal-console-application-template)

Yii 2 Minimal Console Application Template is a skeleton Yii 2 application best for starting totally from scratch, especially for console application.

It includes all commonly used configurations that would allow you to focus on adding new features to your console application.

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

[](#directory-structure)

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

```

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

[](#requirements)

The minimum requirement by this application 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 application template using the following command:

```
composer create-project --prefer-dist --stability=dev agungsijawir/yii2-minimal-console path/to/your/project

```

Now you should be able to run the application through the command line / terminal:

```
./yii

```

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

**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.
- Follow best practice as detailed and clear explanation on [The Definitive Guide to Yii 2.0 - Section: Console applications](https://www.yiiframework.com/doc/guide/2.0/en/tutorial-console#console-applications).

CREDITS
-------

[](#credits)

This project is forked from [samdark/yii2-minimal](https://github.com/samdark/yii2-minimal) and `yii2` community. Forked stripped out web view and just for console only.

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 56.3% 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 ~467 days

Recently: every ~583 days

Total

6

Last Release

1970d ago

PHP version history (2 changes)2.0.4PHP &gt;=5.4.0

2.0.5PHP &gt;=7.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1901132?v=4)[Agung Andika](/maintainers/agungsijawir)[@agungsijawir](https://github.com/agungsijawir)

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (18 commits)")[![mazurva](https://avatars.githubusercontent.com/u/1152567?v=4)](https://github.com/mazurva "mazurva (4 commits)")[![agungsijawir](https://avatars.githubusercontent.com/u/1901132?v=4)](https://github.com/agungsijawir "agungsijawir (3 commits)")[![iamsalnikov](https://avatars.githubusercontent.com/u/3082586?v=4)](https://github.com/iamsalnikov "iamsalnikov (2 commits)")[![FlaverSaver](https://avatars.githubusercontent.com/u/6730463?v=4)](https://github.com/FlaverSaver "FlaverSaver (2 commits)")[![vambus](https://avatars.githubusercontent.com/u/2419721?v=4)](https://github.com/vambus "vambus (1 commits)")[![bkwint](https://avatars.githubusercontent.com/u/521069?v=4)](https://github.com/bkwint "bkwint (1 commits)")[![maximal](https://avatars.githubusercontent.com/u/980679?v=4)](https://github.com/maximal "maximal (1 commits)")

---

Tags

frameworkyiiminimalapplication templateconsole-application

### Embed Badge

![Health badge](/badges/agungsijawir-yii2-minimal-console/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k66](/packages/skeeks-cms)[samdark/yii2-minimal

Yii 2 minimal Application Template

1383.3k](/packages/samdark-yii2-minimal)[skeeks/yii2-assets-auto-compress

Automatically compile and merge files js + css + html in yii2 project

157460.2k8](/packages/skeeks-yii2-assets-auto-compress)[yii2-starter-kit/yii2-starter-kit

Yii2 Starter Kit Application Template

1.4k6.6k](/packages/yii2-starter-kit-yii2-starter-kit)[nenad/yii2-advanced-template

Improved Yii 2 Advanced Application Template By Nenad Zivkovic

9211.1k](/packages/nenad-yii2-advanced-template)[funson86/yii2-adminlte

Yii 2 Advanced Application Template with Adminlte Theme

1492.2k](/packages/funson86-yii2-adminlte)

PHPackages © 2026

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