Skip to content

Releases: lazzard/php-ftp-client

v1.7.0

13 Mar 23:27
Compare
Choose a tag to compare
  • Added support of PHP version '8.1' (#34).

v1.6.1

27 Feb 17:43
29c8f40
Compare
Choose a tag to compare
  • Integrated the GitHub actions to run the integration tests automatically (#31 - #32).
  • FtpClient::copyToLocal now throws an exception if the source remote path is file type and the local destionation directory is not found.

v1.6.0

31 Jan 15:57
Compare
Choose a tag to compare
  • Upgraded the code base to PHP ^7.4.

v1.5.3

26 Nov 10:43
619ab7f
Compare
Choose a tag to compare
  • Added new method FtpClient::appendFile.
  • Added getters and setters for various classes (see commit).
  • Removed the deprecated ConnectionInterface::isSecure.
  • Removed the deprecated ConnectionInterface::isPassive.
  • FtpClient::fileSize is now throw exception if the giving file is a directory type or an error occurs.

v1.5.0

08 Oct 22:54
4bc937a
Compare
Choose a tag to compare
  • Upgraded the code base to PHP v7.2.
  • Upgraded PHPUnit to ^8.0.
  • FtpCommand::raw is now throw exception in failure.
  • FtpWrapper::getErrorMessage returns empty string instead of null if no error message is available.
  • FtpClient::getFeatures throws exception in failure.
  • Fixed FtpClient::createDir for multiple directory creation.
  • FtpClient::getFileContent now throws exception if the passed file is a directory type instead of returning false value.
  • Fixed PHPDoc for some methods.

v1.4.2

01 Oct 20:34
Compare
Choose a tag to compare
  • Fixed FtpClient::getFileContent to get the correct file content for binary files (#20).
  • Added a new optional parameter $mode to FtpClient::getFileContent to specify the FTP transfer mode that will be used to get the files content.
  • Fixed FtpClient::listDirDetails for FTP servers that do not send the DOTS files pointers in directories listing operations (#21).

v1.4.1

20 Aug 09:20
Compare
Choose a tag to compare
  • Fixed a bug with FtpClient::listDir (#17).
  • Deprecated ConnectionInterface::isPassive.

v1.4.0

08 Aug 03:30
Compare
Choose a tag to compare
  • FtpClient::fileSize fixed for servers that not support SIZE feature.
  • FtpClient::listDir fixed compatibility issue with some FTP servers.
  • Connection::isConnected fixed bug : if the connection is not established yet the method was returned
    a NULL value instead of false.
  • FtpCommand::raw improved and added the end-message to the returned array.
  • FtpClient::isDir performance optimized.
  • FtpClient::listDirDetails improved (No Breaking Change).
  • FtpClient::getFeatures is now returns false in failure.
  • FtpClient::isFeatureSupported can now throw a FtpClientException exception.
  • ConnectionInterface::isSecure is deprecated see #15.
  • The integration tests refactored and optimized.

v1.3.5

27 Jun 22:50
Compare
Choose a tag to compare

Fixed

  • FtpClient::isDir and FtpClient::isFile fixed servers compatibility, this two methods no longer depends on the untrusted SIZE feature to work.

Added

  • FtpClient::copy method added.

Behavior changed

  • FtpClient::getFileContent returns false if the passed file is a directory.

v1.3.3

02 May 23:19
Compare
Choose a tag to compare

Added

  • FtpClient::copyToLocal method added.
  • FtpClient::find method added.

Renamed

  • FtpClient::setCurrentDir renamed to FtpClient::changeDir.
  • FtpClient::createDirectory renamed to FtpClient::createDir.
  • FtpClient::removeDirectory renamed to FtpClient::removeDir.
  • FtpClient::getDefaultTransferType renamed to FtpClient::getTransferType.
  • FtpClient::keepConnectionAlive renamed to FtpClient::keepAlive.
  • FtpClient::listDirecory renamed to FtpClient::listDir.
  • FtpClient::listDirecoryDetails renamed to FtpClient::listDirDetails.
  • FtpWrapper::getFtpErrorMessage renamed to FtpWrapper::getErrorMessage.

Others

  • Upgraded PHPUnits version to ^5.