2017 © Pedro Peláez
 

symfony-bundle ftp-bundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

image

ijanki/ftp-bundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  • Monday, May 14, 2018
  • by iJanki
  • Repository
  • 4 Watchers
  • 22 Stars
  • 156,007 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more "classy" way., (*1)

Latest Stable Version Build Status Total Downloads License, (*2)

Installation

Step 1: Install the bundle

Require the bundle with composer:, (*3)

$ composer require ijanki/ftp-bundle

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:, (*4)

``` php <?php // app/AppKernel.php, (*5)

public function registerBundles() { $bundles = [ // ... new Ijanki\Bundle\FtpBundle\IjankiFtpBundle(), ]; }, (*6)


## Usage ``` php <?php use Ijanki\Bundle\FtpBundle\Exception\FtpException; public function indexAction() { //... try { $ftp = $this->container->get('ijanki_ftp'); $ftp->connect($host); $ftp->login($username, $password); $ftp->put($destination_file, $source_file, FTP_BINARY); } catch (FtpException $e) { echo 'Error: ', $e->getMessage(); } //... }

All php ftp functions are wrapped in Ftp object:, (*7)

For example:
ftp_mkdir becomes $ftp->mkdir or
ftp_put becomes $ftp->put
with the same arguments except the first one (resource $ftp_stream).

Check Ftp.php for other added methods., (*8)

Credits

Inspired by https://github.com/dg/ftp-php, (*9)

The Versions

14/05 2018

dev-master

9999999-dev https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

 

ftp

18/03 2017

v2.0.0

2.0.0.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

 

ftp

17/11 2016

v1.0.3

1.0.3.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

 

ftp

02/11 2016

v1.0.2

1.0.2.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

 

ftp

02/06 2015

v1.0.1

1.0.1.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

 

ftp

04/06 2013

v0.9.2

0.9.2.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

ftp

04/06 2013

v1.0.0

1.0.0.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

ftp

19/07 2012

v0.9.1

0.9.1.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

ftp

19/07 2012

v0.9

0.9.0.0 https://github.com/iJanki/FtpBundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

ftp