PHPackages                             yiisoft/yii-base-cli - 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. yiisoft/yii-base-cli

AbandonedArchivedLibrary[Framework](/categories/framework)

yiisoft/yii-base-cli
====================

Yii Framework Command Line Application Base

265816[2 issues](https://github.com/yiisoft/yii-base-cli/issues)PHP

Since May 23Pushed 6y ago13 watchersCompare

[ Source](https://github.com/yiisoft/yii-base-cli)[ Packagist](https://packagist.org/packages/yiisoft/yii-base-cli)[ RSS](/packages/yiisoft-yii-base-cli/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![Yii Framework](https://camo.githubusercontent.com/3ce80b354a4b3ac067b0dae30d56e297134afb2a52ec89fc02f03870afcf8106/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f66696c65732f6c6f676f2f7969692e706e67) ](http://www.yiiframework.com/)

Yii Framework Command Line Application
======================================

[](#yii-framework-command-line-application)

This package is [Yii Framework](http://www.yiiframework.com/) Command Line application best for rapidly creating projects.

The template 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/cd7432f2dbe46db7fcf87946fe1db3e07388cd5f215a60fa42b66280a06002a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969736f66742f7969692d626173652d636c692e737667)](https://packagist.org/packages/yiisoft/yii-base-cli)[![Total Downloads](https://camo.githubusercontent.com/276b74fa7fb6824a4c84d37a2a22dfccab86d88fcd2d2ea9b29ef6ba9da12cc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969736f66742f7969692d626173652d636c692e737667)](https://packagist.org/packages/yiisoft/yii-base-cli)[![Build Status](https://camo.githubusercontent.com/92e0877ab94078a15c98f9fdc9534f77417f5f64f1d5f1fca2317efcd0a92097/68747470733a2f2f7472617669732d63692e636f6d2f796969736f66742f7969692d626173652d636c692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/yiisoft/yii-base-cli)

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

[](#directory-structure)

```
config/             contains application configurations
runtime/            contains files generated during runtime
src/
  commands/           contains console commands (controllers)
tests/              contains various tests for the basic application
vendor/             contains dependent 3rd-party packages
.env
.env.dist
composer.json

```

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

[](#requirements)

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

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 yiisoft/yii-base-cli myapp
cd myapp
./vendor/bin/yii serve

```

Now you should be able to access the application via `http://localhost:8080/`.

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

[](#configuration)

### Database

[](#database)

Edit the file `config/db.php` with real data, for example:

```
return [
    '__class' => \Yiisoft\Db\Connection::class,
    'dsn' => 'mysql:host=localhost;dbname=yii2basic;charset=utf8',
    'username' => 'root',
    'password' => '1234',
];
```

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

TESTING
-------

[](#testing)

Tests are located in `tests` directory.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

![](https://www.gravatar.com/avatar/fc29e4e7068a00fe9b9db37b8aadda1db6020adcacef810461e47b99c2b150e6?d=identicon)[samdark](/maintainers/samdark)

![](https://www.gravatar.com/avatar/ccb75e3312d6bd454ea445ea308139fd185a4ca906ca5df21cc66e6a35de25a3?d=identicon)[SilverFire](/maintainers/SilverFire)

![](https://www.gravatar.com/avatar/854af1889dd7384243cff0bf0fde23463f76058b499b15c740f02e7033ec7ce6?d=identicon)[klimov-paul](/maintainers/klimov-paul)

![](https://www.gravatar.com/avatar/99106256c24a8cb23871b99fa90e48f37f1aa71608c185759b7d2a88683a5918?d=identicon)[hiqsol](/maintainers/hiqsol)

---

Top Contributors

[![machour](https://avatars.githubusercontent.com/u/304450?v=4)](https://github.com/machour "machour (8 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (5 commits)")[![kids-return](https://avatars.githubusercontent.com/u/4520936?v=4)](https://github.com/kids-return "kids-return (4 commits)")[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (1 commits)")[![razonyang](https://avatars.githubusercontent.com/u/17720932?v=4)](https://github.com/razonyang "razonyang (1 commits)")

### Embed Badge

![Health badge](/badges/yiisoft-yii-base-cli/health.svg)

```
[![Health](https://phpackages.com/badges/yiisoft-yii-base-cli/health.svg)](https://phpackages.com/packages/yiisoft-yii-base-cli)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[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.

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

A simple API extension for DateTime.

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

PHPackages © 2026

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