jalsoedesign/filezilla

v1.0.4 2019-05-20 19:49 UTC

This package is auto-updated.

Last update: 2024-04-11 22:19:46 UTC


README

Author Software License PHP Version Total Downloads Github Issues

FileZilla sitemanager.xml parser used to get details for specific servers and/or connect to them using thephpleague/flysystem.

Installation

You can install the library using composer:

composer require jalsoedesign/filezilla

After this simply require ./vendor/autoload.php and you can use the classes.

Examples

CLImax example

The example can be found at tests/test-climax.php

This example will:

  • Open the sitemanager.xml fixture file
  • [FTP] Connect to test.rebex.net:21 server and list files in the root folder
  • [FTPS] Connect to test.rebex.net:990 server and list files in the root folder
  • [FTPEX] Connect to test.rebex.net:21 server and list files in the root folder
  • [SFTP] Connect to test.rebex.net:22 server and list files in the root folder

It can be run with php ./tests/test-climax.php.

Simple example

The example can be found at tests/test-simple.php

This example will:

  • Open the sitemanager.xml fixture file
  • Connect to the test.rebex.net server using insecure FTP
  • List the files in the root folder

It can be run with php ./tests/test-simple.php.

Dependencies

The following composer libraries are used as dependencies:

Library Version Reason
ext-dom * The DOM extension is required to read sitemanager.xml
league/flysystem ^1.0 Flysystem is used to be able to call $server->getFilesystem()
league/flysystem-sftp ^1.0 SFTP support for Flysystem
chinlung/flysystem-curlftp ^2.0 Added implicit FTPS support for Flysystem
jalsoedesign/climax master-dev CLImax support for test application