Skip to content

mpemberton5/laravel-sftp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version

Laravel SFTP

This package provide a service provider to add the "sftp" driver to Laravel Storage.

Installation

In order to install this package, add neoxia/laravel-sftp in composer.json.

"require": {
    "neoxia/laravel-sftp": "1.0.*"
},

And add the service provider in config/app.php.

Neoxia\Filesystem\SftpServiceProvider::class,

Configuration

To configure a new Laravel storage disk on SFTP, provide a configuration like this one in config/filesystems.php

'disks' => [

    'sftp' => [
        'driver'     => 'sftp',
        'host'       => env('SFTP_HOST', ''),
        'port'       => env('SFTP_PORT', '21'),
        'username'   => env('SFTP_USERNAME', ''),
        'password'   => env('SFTP_PASSSWORD', ''),
        'privateKey' => env('SFTP_PRIVATE_KEY_PATH', ''),
        'root'       => env('SFTP_ROOT', ''),
        'timeout'    => env('SFTP_TIMEOUT', '10'),
    ],

],

About

SFTP filesystem service provider for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%