eelly / fastdfs
fastdfs client
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 417
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 5
Open Issues: 0
pkg:composer/eelly/fastdfs
This package is auto-updated.
Last update: 2019-12-13 09:31:24 UTC
README
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