PHPackages                             gn-office/directcloud-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gn-office/directcloud-api

ActiveLibrary[API Development](/categories/api)

gn-office/directcloud-api
=========================

A minimal implementation of DirectCloud API

v1.6.4(1y ago)0981MITPHPPHP ^8.1

Since Feb 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GNOffice/directcloud-api)[ Packagist](https://packagist.org/packages/gn-office/directcloud-api)[ RSS](/packages/gn-office-directcloud-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (1)

A minimal implementation of DirectCloud API
===========================================

[](#a-minimal-implementation-of-directcloud-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ac23f90ad8b79016affc945e5d105d82a180b61730beba7b606226e76fe9a75d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676e2d6f66666963652f646972656374636c6f75642d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/dropbox-api)[![Total Downloads](https://camo.githubusercontent.com/72a3538be0ee4d24b0f3e58cf86e1ad079afc8a921e8bfa2eaa3b60f90326372/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676e2d6f66666963652f646972656374636c6f75642d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/dropbox-api)

This is a minimal PHP implementation of the [DirectCloud API](https://directcloud.jp/api_reference/). It contains only the methods needed for [our flysystem-directcloud adapter](https://github.com/gn-office/flysystem-directcloud). We are open however to PRs that add extra methods to the client.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require gn-office/directcloud-api
```

Usage
-----

[](#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](https://directcloud.jp/api_reference/detail/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC/Auth).

```
use GNOffice\DirectCloud\Client;

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

//create a folder
$client->createFolder($node, $name);

//list a folder
$client->getList($node);
```

Endpoints
---------

[](#endpoints)

Look in [the source code of `GNOffice\DirectCloud\Client`](https://github.com/gn-office/directcloud-api/blob/master/src/Client.php) to discover the methods you can use.

If you do not find your favorite method, you can directly use the `v1Request` and `v2Request` functions.

```
public function v1Request(string $method, string $endpoint, string $requestOption = null, $parameters = [])

public function v2Request(string $method, string $endpoint, string $requestOption, $parameters = [], $extraHeaders = [])
```

Here's an example:

```
$client->v1Request('/openapp/v1/files/search/'.{$node}, ['keyword' => 'something', 'sort' => '+datetime', 'limit' => 100]);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

12

Last Release

483d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3c23f75c9cfbf768017c4d40d5a0af378fa4e363eed81fc4ccb4c4381de7fad?d=identicon)[GNOffice](/maintainers/GNOffice)

---

Top Contributors

[![GNOffice](https://avatars.githubusercontent.com/u/23627891?v=4)](https://github.com/GNOffice "GNOffice (16 commits)")

---

Tags

apidirectclouddirectcloud-api

### Embed Badge

![Health badge](/badges/gn-office-directcloud-api/health.svg)

```
[![Health](https://phpackages.com/badges/gn-office-directcloud-api/health.svg)](https://phpackages.com/packages/gn-office-directcloud-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M10](/packages/checkout-checkout-sdk-php)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
