2017 © Pedro Peláez
 

symfony-bundle sftp-bundle

Symfony bundle which provide quite simple functions for interact with sftp servers

image

sf2h/sftp-bundle

Symfony bundle which provide quite simple functions for interact with sftp servers

  • Thursday, November 16, 2017
  • by NovikovViktor
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3,995 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 42 % Grown

The README.md

SensioLabsInsight Scrutinizer Code Quality Build Status Maintainability, (*1)

SFTP Bundle

This bundle provides a simple interface for transfer files by SFTP protocol., (*2)

Installation

1) Install the bundle using Composer: bash composer require nw/sftp-bundle, (*3)

2) Enable bundle in AppKernel.php, (*4)

php class AppKernel extends Kernel { public function registerBundles() { return array( // ... other bundles new NW\SFTPBundle\NWSFTPBundle() ); } }, (*5)

Usage

1) Connect to the SFTP server: php $sftp = $this->get('nw.sftp'); $sftp->connect($host, $port); $sftp->login($username, $password); // or $sftp->loginWithKey($host, $username, $pubkeyfile, $privkeyfile, $passphrase = null);, (*6)

2) Use SFTP client to transfer files:, (*7)

    $sftp->fetch('/path/to/remoteFile', '/path/to/localFile');
    // or
    $sftp->send('/path/to/localFile', '/path/to/remoteFile');

3) From CLI could be used one of the following commands:, (*8)

app/console nw:sftp:fetch /path/to/remoteFile /path/to/localFile # - copy files from a remote server to the local machine
# or
app/console nw:sftp:send /path/to/localFile /path/to/remoteFile # - copy files from a local machine to the remote server

The Versions

16/11 2017

dev-master

9999999-dev https://github.com/NovikovViktor/SFTPBundle

Symfony bundle which provide quite simple functions for interact with sftp servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Viktor Novikov

symfony2 server symfony3 ssh sftp ftp transfer

16/11 2017

v1.0

1.0.0.0 https://github.com/NovikovViktor/SFTPBundle

Symfony bundle which provide quite simple functions for interact with sftp servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Viktor Novikov

symfony2 server symfony3 ssh sftp ftp transfer

15/11 2017

dev-develop

dev-develop https://github.com/NovikovViktor/SFTPBundle

Symfony bundle which provide quite simple functions for interact with sftp servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Viktor Novikov

symfony2 server symfony3 ssh sftp ftp transfer

22/10 2017

v1.0-alpha

1.0.0.0-alpha https://github.com/NovikovViktor/SFTPBundle

SYmfony2 bundle which provide quite simple functions for interact with sftp servers

  Sources   Download

MIT

The Requires

 

The Development Requires

by Viktor Novikov

symfony2 ssh sftp