iborodikhin / kdb-client
There is no license information available for the latest version (dev-master) of this package.
PHP client for KDB (Koraduba) file storage
dev-master
2016-02-24 06:00 UTC
Requires
- guzzlehttp/guzzle: ^6.1
This package is not auto-updated.
Last update: 2024-12-21 20:41:27 UTC
README
PHP client for KDB (Koraduba) file storage
Installation
composer require iborodikhin/kdb-client
Basic usage
require "vendor/autoload.php"; // Create client instance $client = new \Kdb\Client([ 'host' => '127.0.0.1', 'port' => 1337, ]); // Upload a file. $isSaved = $client->save(__FILE__, "samples/" . basename(__FILE__)); // Check if file exists. $isFile = $client->exists("samples/" . basename(__FILE__)); // \Kdb\File instance. $file = $client->get("samples/" . basename(__FILE__)); // Remove a file. $isDeleted = $client->remove("samples/" . basename(__FILE__));