ceytek-labs/ftp-downloader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ceytek-labs/ftp-downloader

最新稳定版本:v1.0.2

Composer 安装命令:

composer require ceytek-labs/ftp-downloader

包简介

A lightweight library for downloading files over FTP using PHP.

README 文档

README

FtpDownloader - Simple FTP File Downloader

Total Downloads Latest Version Size License

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:

composer require ceytek-labs/ftp-downloader

Usage

Here’s an example of how to use FtpDownloader to download a file from an FTP server:

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固