All Projects → samdark → Yii2 Webshell

samdark / Yii2 Webshell

Web shell allows to run yii console commands using a browser

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Yii2 Webshell

Rageframe
基于yii2的应用开发引擎
Stars: ✭ 170 (-22.73%)
Mutual labels:  yii2
Yii2 Enhanced Gii
Enhanced Yii2 Gii (generator) that generates related Models & CRUD
Stars: ✭ 183 (-16.82%)
Mutual labels:  yii2
Yii2 Angular Boilerplate
Yii2 REST API + Angular10 Boilerplate (Frontend/Backend)
Stars: ✭ 194 (-11.82%)
Mutual labels:  yii2
Yii2 Coding Standards
Yii 2 coding standards
Stars: ✭ 170 (-22.73%)
Mutual labels:  yii2
Yii2 fecshop docker
使用docker compose 快速的安装fecshop的环境,包括mysql php(含扩展),mongodb,mysql,redis,xunsearch等
Stars: ✭ 178 (-19.09%)
Mutual labels:  yii2
Qrcode Library
Create QrCodes with ease
Stars: ✭ 184 (-16.36%)
Mutual labels:  yii2
Balance
Balance accounting (bookkeeping) system based on debit and credit principle
Stars: ✭ 162 (-26.36%)
Mutual labels:  yii2
Yii2
Yii 2: The Fast, Secure and Professional PHP Framework
Stars: ✭ 13,852 (+6196.36%)
Mutual labels:  yii2
Yii2 Debug
Debug Extension for Yii 2
Stars: ✭ 179 (-18.64%)
Mutual labels:  yii2
Yii2 Tech
Yii2 通用后台管理系统
Stars: ✭ 193 (-12.27%)
Mutual labels:  yii2
Yii2 Podium
Yii 2 forum module project
Stars: ✭ 172 (-21.82%)
Mutual labels:  yii2
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-19.55%)
Mutual labels:  yii2
Yii2 Cms
An enterprise application based on yii2 basic template
Stars: ✭ 188 (-14.55%)
Mutual labels:  yii2
Crontab
Yii2 extension for crontab support
Stars: ✭ 170 (-22.73%)
Mutual labels:  yii2
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (-7.27%)
Mutual labels:  yii2
Stat.ink
https://stat.ink/
Stars: ✭ 163 (-25.91%)
Mutual labels:  yii2
Yii2 Gii
Yii 2 Gii Extension
Stars: ✭ 183 (-16.82%)
Mutual labels:  yii2
Iisns
sns 开放社区
Stars: ✭ 217 (-1.36%)
Mutual labels:  yii2
Search Engine Rank
🐘根据网站关键词,获取网站在各大搜索引擎(百度、360、搜狗)的排名情况,有利于网站seo
Stars: ✭ 197 (-10.45%)
Mutual labels:  yii2
Ar Softdelete
Soft delete behavior for ActiveRecord
Stars: ✭ 188 (-14.55%)
Mutual labels:  yii2

Yii 2.0 web shell

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

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist samdark/yii2-webshell "~2.0"

or add

"samdark/yii2-webshell": "~2.0"

to the require section of your composer.json file.

Configuration

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

return [
    'modules' => [
        'webshell' => [
            'class' => 'samdark\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

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' => 'samdark\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;
            }
        ],
    ],

    // ... other application configuration
]

Limitations

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].