neoxia / laravel-sftp
SFTP filesystem service provider for Laravel
Installs: 249 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 34
Watchers: 17
Forks: 8
Open Issues: 0
Requires
- php: >=5.5.9
- illuminate/filesystem: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
- illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
- league/flysystem-sftp: 1.0.*
This package is not auto-updated.
Last update: 2024-12-16 08:23:34 UTC
README
⚠️ The SFTP service provider is present natively in Laravel since v5.6.7. You should avoid using this package if you are in a version of Laravel higher than this one.
Laravel SFTP
This package provide a service provider to add the "sftp" driver to Laravel Storage.
Installation
Require this package with composer using the following command:
composer require neoxia/laravel-sftp
As of Laravel 5.5, this package will be automatically discovered and registered.
For older version of Laravel, 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_PASSWORD', ''), 'privateKey' => env('SFTP_PRIVATE_KEY_PATH', ''), 'root' => env('SFTP_ROOT', ''), 'timeout' => env('SFTP_TIMEOUT', '10'), ], ],