- Added support of PHP version '8.1' (#34).
- 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.
- Upgraded the code base to PHP
^7.4
.
- 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.
- Upgraded the code base to PHP v7.2.
- Upgraded PHPUnit to ^8.0.
FtpCommand::raw
is now throw an 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.
- Fixed
FtpClient::getFileContent
to get the correct file content for binary files (#20). - Added a new optional parameter
$mode
toFtpClient::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).
- Fixed a bug with
FtpClient::listDir
(#17). - Deprecated
ConnectionInterface::isPassive
.
FtpClient::fileSize
fixed for servers that not supportSIZE
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 theend-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 aFtpClientException
exception.ConnectionInterface::isSecure
is deprecated see #15.- The integration tests refactored and optimized.
FtpClient::isDir
andFtpClient::isFile
fixed servers compatibility, this two methods no longer depends on the untrustedSIZE
feature to work.
FtpClient::copy
method added.
FtpClient::getFileContent
returns false if the passed file is a directory.
FtpClient::copyToLocal
method added.FtpClient::find
method added.
FtpClient::setCurrentDir
renamed toFtpClient::changeDir
.FtpClient::createDirectory
renamed toFtpClient::createDir
.FtpClient::removeDirectory
renamed toFtpClient::removeDir
.FtpClient::getDefaultTransferType
renamed toFtpClient::getTransferType
.FtpClient::keepConnectionAlive
renamed toFtpClient::keepAlive
.FtpClient::listDirectory
renamed toFtpClient::listDir
.FtpClient::listDirectoryDetails
renamed toFtpClient::listDirDetails
.FtpWrapper::getFtpErrorMessage
renamed toFtpWrapper::getErrorMessage
.
- Upgraded PHPUnits version to ^5.
WrapperException
Added.ConnectionInterface::isPassive
Introduced.
- Making methods more atomic.
- Wrapped built-in FTP extension constants, all constants are available in the
FtpWrapper
class. FtpClient::listDirectoryDetails
is now returned an associative array with file paths instead of index integers.- Fixed
FtpClient::isDir
andFtpClient::isFile
compatibility with servers that not support SIZE feature.
- Added
$mode
parameter forFtpClient::createFile
method.
- Added
FtpClient\Connection\Connection
abstract class. - Introduced
ConnectionInterface::isSecure
. - Introduced
ConnectionInterface::isConnected
.
- Introduced
FtpClient::copyFromLocal
. - Fixed
FtpClient::asyncDownload
method. (#8) - Improved markdown documentation.
- README documentation improved.
- Upgraded to PHP 5.6.0 version.
- Supported the
usePassiveAddress
runtime option. - Added more options for unit testing (
PASSIVE
,INITIAL_DIR
). - Removed
USESSL
option for unit testing.
- Removed
FtpBaseConfig
class. - Removed
FtpClient::getTransferMode
method. - Removed
FtpClient::isEmptyDirectory
&FtpClient::isEmptyFile
useFtpClient::isEmpty
instead for both files and directories.
FtpClient::removeFile
&FtpClient::removeDirectory
methods now doesn't throw an exception if the given file doesn't exist, but instead returns false.FtpClient::createFile
now doesn't throw an exception if the file name already exists on the server, instead, the remote file will be overwritten.FtpClient::createDirectory
now returns true if the giving directory already exists instead of throwing an exception.
- FTP error handling improved, the
FtpWrapper
is now responsible for detecting and muting FTP functions errors. - Unit tests improved.
- Docs improved.
- Fixed
isExists
method (#5). - Fixed error handling of
createDirectory
&createFile
methods (#5).
- Fixed listDirectoryDetails not working with directories contains spaces. (#2)
- Fixed listDirectoryDetails incorrect file path. (#4)
- First release.