PHP code example of taylornetwork / server-connector
1. Go to this page and download the library: Download taylornetwork/server-connector 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/ */
taylornetwork / server-connector example snippets
// defaults.php
return [
'type' => 'ssh',
];
// connections.php
return [
// Name of the connection as the key
'example' => [
// Add any short aliases to access this as
'aliases' => [ 'ex', 'e' ],
// Add credentials here, or an empty array
'credentials' => [
'username' => 'user1',
// Password is not recommended, ideally omit this and use ssh keys
'password' => 'password1',
],
// Omit to use default or you can set the path to a private key
'keyFile' => '~/.ssh/id_rsa',
// URL or IP address to connect to
'url' => 'connect.example.com',
],
];
bash
$ composer global
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.