PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 118 All time: 9,534 This week: 49Up
Version License PHP version Categories
php-ftp-client 1.0.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  
Innovation award
Innovation award
Nominee: 6x

 

Documentation

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:118
This week:0
All time:9,534
This week:49Up