gn-office/flysystem-directcloud

A flysystem driver for DirectCloud

v1.1.8 2025-02-26 04:29 UTC

This package is auto-updated.

Last update: 2025-04-26 04:48:37 UTC


README

Latest Version on Packagist Total Downloads

This package contains a Flysystem adapter for DirectCloud. Under the hood, the DirectCloud API is used.

Installation

You can install the package via composer:

composer require gn-office/flysystem-directcloud

Usage

The first thing you need to do is to get an authorization information at DirectCloud. You'll find more info at DirectCloud API Documentation.

use League\Flysystem\Filesystem;
use GNOffice\DirectCloud\Client;
use GNOffice\FlysystemDirectCloud\DirectCloudAdapter;

$client = new Client([$service, $service_key, $code, $id, $password]);
// or
$client = new Client([$service, $service_key, $access_key]);

$adapter = new DirectCloudAdapter($client);

$filesystem = new Filesystem($adapter);

License

The MIT License (MIT). Please see License File for more information.