eelly/fastdfs

fastdfs client

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

About Eelly fastdfs

Fastdfs php client.

Install

Via Composer

composer require eelly/fastdfs

Usage

$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);

Testing

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

Thanks

fastdfs