PHP code example of jailtonsc / sftp-laravel

1. Go to this page and download the library: Download jailtonsc/sftp-laravel 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/ */

    

jailtonsc / sftp-laravel example snippets


SFTP\SFTPServiceProvider::class

'sftp' => [
	'driver'   => 'sftp',
	'host' => 'example.com',
	'port' => 21,
	'username' => 'username',
	'password' => 'password',
	'privateKey' => 'path/to/or/contents/of/privatekey',
	'root' => '/path/to/root',
	'timeout' => 10,
],

'default' => 'sftp'