PHPackages                             mallka/yii2-webshell - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mallka/yii2-webshell

ActiveYii2-extension[CLI &amp; Console](/categories/cli)

mallka/yii2-webshell
====================

A web shell that allows to run yii or other console commands and create your own commands.

2.0.0(10y ago)061BSD-3-ClauseJavaScript

Since Aug 7Pushed 5y agoCompare

[ Source](https://github.com/mallka/yii2-webshell)[ Packagist](https://packagist.org/packages/mallka/yii2-webshell)[ GitHub Sponsors](https://github.com/samdark)[ Patreon](https://www.patreon.com/samdark)[ RSS](/packages/mallka-yii2-webshell/feed)WikiDiscussions master Synced today

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

**Notice:the package forked from samdark/yii2-webshell**

What we change
==============

[](#what-we-change)

1. allow to run other console command
2. move the jquery.terminal into asset folder due to bower floder is different(since some date)
3. changed sourcepath of Asset Class, then I don't need to set Alias config anymore.

Yii 2.0 web shell
=================

[](#yii-20-web-shell)

Web shell allows to run `yii` console commands using a browser.

[![](screenshot.png)](screenshot.png)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mallka/yii2-webshell "dev-master"

```

or add

```
"mallka/yii2-webshell": "dev-master"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

To use web shell, include it as a module in the application configuration like the following:

```
return [
    'modules' => [
        'webshell' => [
            'class' => 'mallka\webshell\Module',
            // 'yiiScript' => Yii::getAlias('@root'). '/yii', // adjust path to point to your ./yii script
        ],
    ],

    // ... other application configuration
]
```

With the above configuration, you will be able to access web shell in your browser using the URL `http://localhost/path/to/index.php?r=webshell`

Access control
--------------

[](#access-control)

By default access is restricted to local IPs. It could be changed via `allowedIPs` property. Additionally, `checkAccessCallback` is available to be able to introduce custom access control:

```
return [
    'modules' => [
        'webshell' => [
            'class' => 'mallka\webshell\Module',
            // 'yiiScript' => Yii::getAlias('@root'). '/yii', // adjust path to point to your ./yii script
            'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.2'],
            'checkAccessCallback' => function (\yii\base\Action $action) {
                // return true if access is granted or false otherwise
                return true;
            },

            //allow to run other commands,default is true,
            'unlimit'=>false,

            //unsupport command
            'unsupportCommands'=>['top','ping'],
        ],
    ],

    // ... other application configuration
]
```

Limitations
-----------

[](#limitations)

Web shell is unable to work interactively because of request-response nature of web. Therefore you should disable interactive mode for commands.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~104 days

Total

3

Last Release

3719d ago

Major Versions

1.0.1 → 2.0.02016-03-04

### Community

Maintainers

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

---

Top Contributors

[![anoshop](https://avatars.githubusercontent.com/u/13656807?v=4)](https://github.com/anoshop "anoshop (12 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (10 commits)")[![YaroslavShapoval](https://avatars.githubusercontent.com/u/2136103?v=4)](https://github.com/YaroslavShapoval "YaroslavShapoval (2 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (1 commits)")[![unasoft](https://avatars.githubusercontent.com/u/24616765?v=4)](https://github.com/unasoft "unasoft (1 commits)")

---

Tags

consoleshellyii2extensionwebshell

### Embed Badge

![Health badge](/badges/mallka-yii2-webshell/health.svg)

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

###  Alternatives

[samdark/yii2-webshell

A web shell that allows to run yii console commands and create your own commands.

22981.5k1](/packages/samdark-yii2-webshell)[toriphes/yii2-console-runner

Runs console command in yii web application

29240.1k](/packages/toriphes-yii2-console-runner)[vova07/yii2-console-runner-extension

An extension for running console commands on background in Yii framework.

88202.2k2](/packages/vova07-yii2-console-runner-extension)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2233.5k](/packages/fedemotta-yii2-cronjob)[trntv/yii2-tactician

A simple, flexible command bus. This package provide it's integration with Yii2

1458.3k](/packages/trntv-yii2-tactician)

PHPackages © 2026

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