PHPackages                             loveorigami/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. loveorigami/yii2-webshell

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

loveorigami/yii2-webshell
=========================

Yii2-Webshell allows you to execute any shell command from a web-interface.

0291[1 issues](https://github.com/loveorigami/yii2-webshell/issues)PHP

Since Jun 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/loveorigami/yii2-webshell)[ Packagist](https://packagist.org/packages/loveorigami/yii2-webshell)[ RSS](/packages/loveorigami-yii2-webshell/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-webshell
=============

[](#yii2-webshell)

It is a \[fork from\] ()

Yii2-Webshell allows you to execute any shell command from a web-interface. This is especially useful to call console-commands from the frontend. The execution is done via AJAX and a special action-class (`ShellAction`).

The output of the shell action **is displayed live** (line by line).

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

[](#installation)

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

```
"loveorigami/yii2-webshell": "*"

```

###### ShellAction

[](#shellaction)

This is the action you can attach to any controller via its `actions()`-method. Here you define who and who the action can be accessed. All the regular RBAC-controls are of course available.

The following is an example for a configuration calling a yii-console-command under windows:

```
class MyController extends \yii\web\Controller
{

	//...

	public function actions()
	{
		return [
			'my-shell-action'=>[
				'class'=>'lo\wshell\actions\ShellAction',
				'command'=>'my-console-command/index',
				'yiiScript'=>'@app/yii',
			],
		];
	}

	//...

}
```

### Widgets

[](#widgets)

###### ShellWidget

[](#shellwidget)

The widget allows you to create a console like container in your views, which communicates with a `ShellAction`as documented above. The following represents a full configuration:

```
echo Button::widget([
	'label'=>'Run',
	'options'=>[
		'data-shell-widget-run'=>'my-shell-widget',
	],
])

echo ShellWidget::widget([
	'id'=>'my-shell-widget',
	'route'=>['my-controller/my-shell-action'],
	'autorun'=>false,
	'initialContent'=>Yii::t('app', 'Ready and waiting...'),
	'clientOptions'=>[
        //custom client options here
	],
])
```

As you can see, the console can either be ran automatically or not. In any case you can create buttons which will then trigger the action. To do so simply use the attribute `data-shell-widget-run` and fill it with the id of the `ShellWidget`. You can customize all the js-options (including the attribute name) with the `clientOptions` property of the widget.

For a full documentation of the widgets possibilities check out the doc within its code.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

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/e7cd51e41d7a25605da02f494d1bd7f7b7deadad23080d9ec1021ec9188498b7?d=identicon)[loveorigami](/maintainers/loveorigami)

---

Top Contributors

[![loveorigami](https://avatars.githubusercontent.com/u/98164?v=4)](https://github.com/loveorigami "loveorigami (7 commits)")

---

Tags

shellyii2

### Embed Badge

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

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

###  Alternatives

[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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