2017 © Pedro Peláez
 

library robo-ftp

FTP(S) task for Robo

image

coderstephen/robo-ftp

FTP(S) task for Robo

  • Tuesday, June 16, 2015
  • by sagebind
  • Repository
  • 1 Watchers
  • 4 Stars
  • 170 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Robo FTP Deploy Task

Version License Downloads, (*1)

A simple task for the Robo task runner for deploying files to a remote server using FTP. Useful for shared hosting servers if you do not have SSH access, or for if you need better platform independence., (*2)

Installation

Add the package to your list of dependencies:, (*3)

composer require --dev coderstephen/robo-ftp

This task uses dg/ftp-php for establishing FTP connections, which is a thin wrapper around the built-in FTP PHP extension. Most PHP installations are compiled with this extension, so this task should be able to be run just about anywhere with a PHP interpreter., (*4)

Usage

Just include the FtpDepoly trait in your RoboFile.php file and run an FTP deploy task using $this->taskFtpDeploy()., (*5)

class RoboFile extends \Robo\Tasks
{
    use RoboFtp\FtpDeploy;

    function deploy()
    {
        $ftp = $this->taskFtpDeploy('host', 'user', 'password')
            ->dir('/')
            ->from('.')
            ->exclude('build')
            ->exclude('cache')
            ->skipSizeEqual()
            ->skipUnmodified()
            ->run();
    }
}

SSL Support

This task supports using FTP over SSL by default. You need the SSL extension for this to work, which isn't always available on Windows. If you want to disable SSL for your task, you can use the secure() method:, (*6)

class RoboFile extends \Robo\Tasks
{
    use RoboFtp\FtpDeploy;

    function deploy()
    {
        $ftp = $this->taskFtpDeploy('host', 'user', 'password')
            ->dir('wwwroot')
            ->from('public')
            ->secure(false)
            ->run();
    }
}

Note that some Windows servers do not properly support FTP/S either and may error out when uploading files over SSL. Microsoft has made available a hotfix for this bug, but isn't distributed by default. More information here., (*7)

The Versions

16/06 2015

dev-master

9999999-dev

FTP(S) task for Robo

  Sources   Download

MIT

The Requires

 

ftp ftps robo

16/02 2015

v0.1.2

0.1.2.0

FTP(S) task for Robo

  Sources   Download

MIT

The Requires

 

ftp ftps robo

04/02 2015

v0.1.1

0.1.1.0

FTP(S) task for Robo

  Sources   Download

MIT

The Requires

 

ftp ftps robo

02/02 2015

v0.1

0.1.0.0

FTP(S) task for Robo

  Sources   Download

MIT

The Requires

 

ftp ftps robo