PHP FTP Client class: Send and receive files from a FTP server

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-24 (11 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 72 This week: 72All time: 9,827 This week: 1Up
Version License PHP version Categories
php-ftp-client 1.0GNU General Publi...5Networking, PHP 5, Files and Folders
Description Author

This class can send and receive files from a FTP server.

It can connect to a given FTP server and login on behalf of a given user to perform several types of operations with files and directories. Currently it can:

- Change to a given server directory
- Create a directory
- List the files in the directory
- Send a file
- Retrieve a file

Picture of Juraj Puchký
  Performance   Level  
Name: Juraj Puchký <contact>
Classes: 16 packages by
Country: Czech Republic Czech Republic
Innovation award
Innovation award
Nominee: 6x

Details

php-fto-client

Simple FTP Client wrapper

Install

composer require baba/php-ftp-client

Example

 use BABA\FTP\FtpClient;
 $client = new FtpClient($hostname, $username, $password, $rootFolder);
 $client->login();
 $files = $client->listFiles('/');
 foreach ($files as $file) {
    $client->downloadFile($file, './file.txt');
 }
 $client->disconnect();

License

GPL-2.0-only

Authors

Juraj Puchký - BABA Tumise s.r.o. <info@baba.bj>

https://www.seoihned.cz - SEO optilamizace

https://www.baba.bj - Tvorba webových stránek

https://www.webtrace.cz - Tvorba portál? a ecommerce b2b/b2c (eshop?) na zakázku

Log

1.0.0 - first release

Copyright

&copy; 2021 BABA Tumise s.r.o.

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file FTPClient.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:72
All time:9,827
This week:1Up
For more information send a message to info at phpclasses dot org.