ragingdave/flysystem-sftp-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ragingdave/flysystem-sftp-laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require ragingdave/flysystem-sftp-laravel

包简介

Integrates Flysystem SFTP with Laravel Storage.

README 文档

README

This package provides a service provider to add the sftp flysystem-driver to Laravel Storage mechanisms.

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

Installation

In order to install this package, simply require the package

composer require ragingdave/flysystem-sftp-laravel

Laravel version < 5.5

Add the service provider to config/app.php:

RagingDave\Filesystem\Sftp\SftpServiceProvider::class,

Configuration

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

'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.

统计信息

  • 总下载量: 17.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-09