Skip to content
Flysystem Adapter for the FTP with cURL implementation
PHP Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge pull request #22 from simoheinonen/cert_checks Oct 15, 2018
tests Apply fixes from StyleCI Aug 23, 2018
.editorconfig
.gitattributes first commit May 2, 2017
.gitignore ignore .idea May 4, 2017
.php_cs
.styleci.yml Update .styleci.yml Aug 23, 2018
.travis.yml Add 7.2, 7.3 Apr 4, 2019
LICENSE license May 2, 2017
README.md
composer.json add maintainer May 4, 2017
phpunit.xml normalize string May 4, 2017

README.md

Flysystem Adapter for the FTP with cURL implementation

Latest Stable Version License Build Status Quality Score StyleCI

This package contains a Flysystem FTP adapter with cURL implementation. It supports both explicit and implicit SSL connections.

Installation

You can install the package via composer:

composer require vladimir-yuldashev/flysystem-curlftp

Usage

use League\Flysystem\Filesystem;
use VladimirYuldashev\Flysystem\CurlFtpAdapter;

$adapter = new CurlFtpAdapter([
  'host' => 'ftp.example.com',
  'username' => 'username',
  'password' => 'password',

  /** optional config settings */
  'port' => 21,
  'root' => '/path/to/root',
  'utf8' => true,
  'ssl' => true,
  'timeout' => 90,		// connect timeout
  'sslVerifyPeer' => 0, // using 0 is insecure, use it only if you know what you're doing
  'sslVerifyHost' => 0, // using 0 is insecure, use it only if you know what you're doing
  
  /** proxy settings */
  'proxyHost' => 'proxy-server.example.com',
  'proxyPort' => 80,
  'proxyUsername' => 'proxyuser',
  'proxyPassword' => 'proxypassword',
]);

$filesystem = new Filesystem($adapter);

Testing

$ composer test

Security

If you discover any security related issues, please email misterio92@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.