eelly/fastdfs

fastdfs 客户端

该软件包的官方仓库似乎已消失,因此软件包已被冻结。

v1.0.1 2018-09-26 03:49 UTC

This package is auto-updated.

Last update: 2019-12-13 09:31:24 UTC


README

Latest Stable Version Total Downloads StyleCI

关于 Eelly fastdfs

Fastdfs php 客户端。

安装

通过 Composer

composer require eelly/fastdfs

使用方法

$config = [
             'host'  => '172.18.107.97',
             'port'  => 22122,
             'group' => [
                  'G01',
                  'G02',
              ],
          ];
$client = new \Eelly\FastDFS\Client($config);

// upload file
$filePath = $client->uploadFile('/path/file');

// delete file
$client->deleteFile($filePath);

测试

phpunit --bootstrap vendor/autoload.php tests/ClientTest.php

感谢

fastdfs