2017 © Pedro Peláez
 

library flysystem-sftp-laravel

Integrates Flysystem SFTP with Laravel Storage.

image

ragingdave/flysystem-sftp-laravel

Integrates Flysystem SFTP with Laravel Storage.

  • Monday, October 9, 2017
  • by DaveMC08
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,370 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 25 % Grown

The README.md

Laravel Flysystem SFTP

This package provides a service provider to add the sftp flysystem-driver to Laravel Storage mechanisms., (*1)

NOTE

This package is no longer needed in Laravel Version 5.6 and up. See the Laravel Docs for details. https://laravel.com/docs/5.6/filesystem#driver-prerequisites, (*2)

Installation

In order to install this package, simply require the package, (*3)

composer require ragingdave/flysystem-sftp-laravel

Laravel version < 5.5

Add the service provider to config/app.php:, (*4)

RagingDave\Filesystem\Sftp\SftpServiceProvider::class,

Configuration

To configure an sftp connection, add a new configuration to config/filesystems.php:, (*5)

'disks' => [
    'sftp' => [
        'driver' => 'sftp',
        'host' => env('SFTP_HOST'),
        'port' => env('SFTP_PORT', 22),
        'username' => env('SFTP_USERNAME'),
        'password' => env('SFTP_PASSWORD'),
        'privateKey' => storage_path('keys') . '/sftp_key', // This can also be the full private key contents
        'root' => env('SFTP_ROOT'),
        'timeout' => env('SFTP_TIMEOUT', 10),
    ],
],

Additional options that thephpleague/flysystem-sftp supports can be passed as all options are passed-through to the adapter., (*6)

The Versions

09/10 2017

dev-master

9999999-dev

Integrates Flysystem SFTP with Laravel Storage.

  Sources   Download

MIT

The Requires

 

by David Cox

09/10 2017

1.0.0

1.0.0.0

Integrates Flysystem SFTP with Laravel Storage.

  Sources   Download

MIT

The Requires

 

by David Cox