gn-office / flysystem-directcloud
A flysystem driver for DirectCloud
v1.1.8
2025-02-26 04:29 UTC
Requires
- php: ^8.1
- gn-office/directcloud-api: ^1.6.3
- league/flysystem: ^3.29
README
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.