Coder Social home page Coder Social logo

laravel-sftp's Introduction

โš ๏ธ 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.

Latest Stable Version

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'),
    ],

],

laravel-sftp's People

Contributors

alexandre-butynski avatar hglattergotz avatar steve-rhodes avatar thomasruiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-sftp's Issues

conflict with Laravel 5.6

Hi

I had to remove laravel-sftp because of a composer conflict when I upgraded Laravel to 5.6.
Could you please check?

thanks!

Here's the terminal output when trying to install laravel-sftp again:

composer require neoxia/laravel-sftp

Using version ^1.0 for neoxia/laravel-sftp
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove laravel/framework v5.6.2
    - Conclusion: don't install laravel/framework v5.6.2
    - neoxia/laravel-sftp v1.0.0 requires illuminate/filesystem 5.1.*|5.2.*|5.3.*|5.4.* -> satisfiable by illuminate/filesystem[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, v5.1.1, v5.1.13, v5.1.16, v5
.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45,
 v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
    - neoxia/laravel-sftp v1.0.1 requires illuminate/filesystem 5.1.*|5.2.*|5.3.*|5.4.*|5.5.* -> satisfiable by illuminate/filesystem[5.1.x-dev, 5.2.x-dev, 5.3.x-dev, 5.4.x-dev, 5.5.x-dev, v5.1.1, v5.
1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37,
v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34].
    - don't install illuminate/filesystem 5.5.x-dev|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.0|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.16|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.17|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.2|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.28|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.33|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.5.34|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem 5.1.x-dev|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem 5.2.x-dev|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem 5.3.x-dev|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem 5.4.x-dev|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.1|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.13|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.16|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.2|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.20|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.22|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.25|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.28|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.30|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.31|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.41|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.6|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.1.8|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.0|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.19|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.21|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.24|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.25|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.26|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.27|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.28|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.31|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.32|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.37|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.43|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.45|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.6|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.2.7|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.3.0|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.3.16|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.3.23|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.3.4|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.0|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.13|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.17|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.19|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.27|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.36|don't install laravel/framework v5.6.2
    - don't install illuminate/filesystem v5.4.9|don't install laravel/framework v5.6.2
    - Installation request for laravel/framework (locked at v5.6.2, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.2].
    - Installation request for neoxia/laravel-sftp ^1.0 -> satisfiable by neoxia/laravel-sftp[v1.0.0, v1.0.1].

downloading

Hi,
I installed your package I have to say it is amazing. The only problem I have faced is downloading the file. I mean the path function does not work with an SFTP driver so how may I download the file?
I mean if my SFTP server is xxx.xxx.xxx.xxx may I make a download link using this IP address so the user can download the file straight from the SFTP server?

cant login

put all correct access data and cant login
vendor/league/flysystem-sftp/src/SftpAdapter.php Linha: 199 Could not login with username: user, host: 000.000.000.000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.