1. Go to this page and download the library: Download leozhang989/laravel-remote library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leozhang989 / laravel-remote example snippets
return [
/*
* This host will be used if none is specified
* when executing the `remote` command.
*/
'default_host' => 'default',
/*
* Here you can define the hosts where the commands should be executed.
*/
'hosts' => [
'default' => [
'host' => env('REMOTE_HOST'),
'port' => env('REMOTE_PORT', 22),
'user' => env('REMOTE_USER'),
/*
* The package will cd to the given path before executing the given command.
*/
'path' => env('REMOTE_PATH'),
]
],
];