deaniliev / remote
Laravel 框架的 LaravelCollective's Remote SSH 访问的分支。
v6.2.0
2020-09-07 20:21 UTC
Requires
- php: >=7.2
- illuminate/filesystem: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
- phpseclib/phpseclib: ^2.0
Requires (Dev)
- illuminate/console: ^6.0|^7.0|^8.0
- mockery/mockery: ~1.0
- phpunit/phpunit: ~5.5
- 6.x-dev
- v6.2.0
- v6.1.1
- v6.1.0
- 6.0.x-dev
- dev-master / 6.0.x-dev
- v6.0.2
- v6.0.1
- v6.0
- 5.8.x-dev
- v5.8.1
- v5.8
- 5.7.x-dev
- v5.7
- 5.6.x-dev
- v5.6.1
- v5.6
- 5.5.x-dev
- v5.5
- 5.4.x-dev
- v5.4.1
- v5.4.0
- 5.3.x-dev
- v5.3.0
- 5.2.x-dev
- v5.2.2
- v5.2.1
- v5.2
- 5.1.x-dev
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- 5.0.x-dev
- v5.0.1
- v5.0
This package is not auto-updated.
Last update: 2024-09-26 23:30:29 UTC
README
有关 Laravel 框架的远程 (SSH) 的官方文档可以在 LaravelCollective 网站找到。
此仓库是 LaravelCollective's Remote 的分支。
添加了对 Laravel 9 的支持以及安装说明。
安装
composer.json
"require": {
...
"deaniliev/remote": "^6"
},
config/app.php
'providers' => [
Collective\Remote\RemoteServiceProvider::class,
]
'aliases' => Facade::defaultAliases()->merge([
// 'ExampleClass' => App\Example\ExampleClass::class,
'SSH' => \Collective\Remote\RemoteFacade::class,
])->toArray(),
composer update
php artisan vendor:publish
使用方法
在 confg/remote.php 中定义了连接后,您可以直接使用 SSH 类
SSH::run(['echo "This is a test"']);