This bundle provide simple interface for transfer files by SFTP protocol.
Installation:
-
Install libssh2-php library:
sudo apt-get install libssh2-php sudo service apache2 restart
-
Install bundle using Composer:
composer require sf2h/sftp-bundle
-
Enable bundle in
AppKernel.php
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... some other bundles new SF2Helpers\SFTPBundle\SF2HelpersSFTPBundle() } // ... other code }
-
Use service
sftp
for transfering files by SFTP. Details about service usage see here.