Download the PHP
package rickmacgillis/sftp-and-ftp-client without Composer
On this page you can find all versions of the php package
rickmacgillis/sftp-and-ftp-client. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor rickmacgillis Package sftp-and-ftp-client Short Description A flexible FTP, SSL-FTP, and SSH-based SFTP client for PHP. This lib provides helpers that are easy to use to manage the remote files. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Informations about the package sftp-and-ftp-client
PHP SFTP Client
Originally forked from nicolab/php-ftp-client, this project now supports Windows FTP and SSH FTP connections by mashing it with phpseclib/phpseclib.
A flexible FTP and SSH-FTP client for PHP.
This lib provides helpers easy to use to manage the remote files.
This package is aimed to remain simple and light. It's only a wrapper of the FTP native API of PHP, with some useful helpers. If you want to customize some methods, you can do this by inheriting one of the 3 classes of the package.
Install
Use composer: requirerickmacgillis/php-ftp-client
Or use GIT clone command: git clone [email protected]:rickmacgillis/php-ftp-client.git
Or download the library, configure your autoloader or include the 3 files of php-ftp-client/src/FtpClient directory.
Getting Started
Connect to a server FTP :
OR
Connect to a server FTP via SSH (on port 22 or another port) :
Note: The connection is implicitly closed at the end of script execution (when the object is destroyed). Therefore it is unnecessary to call $ftp->close(), except for an explicit re-connection.
PHPSecLib team for building the SFTP integration components.
Nicolas Talle (nicolab) for the original FTP client code and inspiration for extending his package.
Rick Mac Gillis (rickmacgillis) for merging the two codebases and providing a unified interface for easy use no matter which type of authentication you need for FTP.
TODO
Add better test coverage.
Add more documentation
All versions of sftp-and-ftp-client with dependencies
Requiresphp Version
>=7.2 ext-ftp Version
* phpseclib/phpseclib Version
^3.0
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package rickmacgillis/sftp-and-ftp-client contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.