https://github.com/ceytek-labs/ftp-downloader
A lightweight library for downloading files over FTP using PHP.
https://github.com/ceytek-labs/ftp-downloader
ceytek-labs downloader file-transfer ftp ftp-client library php
Last synced: 5 months ago
JSON representation
A lightweight library for downloading files over FTP using PHP.
- Host: GitHub
- URL: https://github.com/ceytek-labs/ftp-downloader
- Owner: ceytek-labs
- License: mit
- Created: 2024-11-25T16:45:30.000Z (over 1 year ago)
- Default Branch: 1.x
- Last Pushed: 2024-11-25T17:21:16.000Z (over 1 year ago)
- Last Synced: 2025-10-20T03:59:20.060Z (9 months ago)
- Topics: ceytek-labs, downloader, file-transfer, ftp, ftp-client, library, php
- Language: PHP
- Homepage: https://github.com/ceytek-labs/ftp-downloader
- Size: 1.09 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
------
# FtpDownloader - Simple FTP File Downloader
**FtpDownloader** is a lightweight and simple library designed to streamline downloading files over FTP using PHP. With just a few method calls, you can securely retrieve files from any FTP server.
> **Note:** This package assumes the FTP server supports explicit FTPS (FTP over SSL/TLS).
## Requirements
- PHP 7.0 or higher (including PHP 8)
## Installation
You can add this package to your project via Composer:
```bash
composer require ceytek-labs/ftp-downloader
```
## Usage
Here’s an example of how to use **FtpDownloader** to download a file from an FTP server:
```php
use CeytekLabs\FtpDownloader\FtpDownloader;
try {
FtpDownloader::make()
->setFtpServer('ftp.example.com')
->setUsername('username')
->setPassword('password')
->setFilePath('/data/example.zip')
->setLocalPath('/local/path/example.zip')
->download();
echo "File downloaded successfully.";
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
```
## Contributing
Feel free to submit a **pull request** or report an issue. Any contributions and feedback are highly appreciated!
## License
This project is licensed under the MIT License.