PHPackages                             dmmcomlabo/dmm-sdk-v3 - 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. dmmcomlabo/dmm-sdk-v3

ActiveLibrary[API Development](/categories/api)

dmmcomlabo/dmm-sdk-v3
=====================

DMM Web API version.3 SDK for PHP

v1.1.0(7y ago)225.3k6[1 issues](https://github.com/dmmlabo/dmm-php-sdk/issues)1MITPHPPHP &gt;=5.4.0CI failing

Since Mar 28Pushed 7y ago9 watchersCompare

[ Source](https://github.com/dmmlabo/dmm-php-sdk)[ Packagist](https://packagist.org/packages/dmmcomlabo/dmm-sdk-v3)[ Docs](https://github.com/dmmlabo/dmm-php-sdk)[ RSS](/packages/dmmcomlabo-dmm-sdk-v3/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (1)

DMM SDK for PHP (v3)
====================

[](#dmm-sdk-for-php-v3)

[![License](https://camo.githubusercontent.com/cd2c96c3d4bdf4f3e8572ed4da4273a344bfeb44ff31084a2eb9efb31d730493/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/dmmlabo/dmm-php-sdk/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/26d6d5e42747edd45fd490424eafd9f8dda2ef39a960ae17495c8bbfa1f31ef1/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f646d6d6c61626f2f646d6d2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dmmlabo/dmm-php-sdk)[![Coverage Status](https://camo.githubusercontent.com/f0d44bf6020ae052d13d7fe6408e330951f025f8b4be338956f3050468207bcd/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f646d6d6c61626f2f646d6d2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/dmmlabo/dmm-php-sdk?branch=master)[![Packagist](https://camo.githubusercontent.com/3446254f6cfcaefbc74c97a8d0f786c650910b5847d48b31c791b8cc0b6f2945/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646d6d636f6d6c61626f2f646d6d2d73646b2d76332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dmmcomlabo/dmm-sdk-v3)

DMM Web API version.3 クライアント for PHP

参照: [DMM Affiliate](https://affiliate.dmm.com/)

インストール
------

[](#インストール)

```
composer require dmmcomlabo/dmm-sdk-v3
```

使い方
---

[](#使い方)

詳細は[Docs](docs)を参照してください

```
$dmm = new \Dmm\Dmm([
  "affiliate_id" => "YOUR-AFFILIATE-ID",
  "api_id"       => "YOUR-API-ID",
]);

// 商品検索APIを使用する場合
$keyword = 'ナース';
$response = $dmm->api("product")->find(Dmm\Apis\Product::SITE_ADULT, [
  'keyword' => $keyword
]);
$result = $response->getDecodedBody();
print_r($result);
```

テスト
---

[](#テスト)

1. 実行するには[Composer](https://getcomposer.org/) をインストールしておく必要があります。グローバルでインストールし、`composer install`で依存関係にあるライブラリ・ファイルをインストールしてください。
2. `tests/DmmTestCredentials.php` を `tests/DmmTestCredentials.php.dist` を元に作成し、編集してください。このデータは実際にAPIサーバと通信を行なうテストの際に利用されます。
    環境変数で設定することも可能です。DMM\_TEST\_AFFILIATE\_ID、DMM\_TEST\_API\_IDでアフィリエイトIDとAPI IDをしてください。
3. ライブラリのrootディレクトリで以下のコマンドを実行してください。

```
$ ./vendor/bin/phpunit
```

ネット接続できない場合や、アフィリエイト登録していない場合は以下のようにしてください。 integrationをテストから除外することで実際にAPIサーバとの通信を行なうテストを除外して実行することができます。

```
$ ./vendor/bin/phpunit --exclude-group integration
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~436 days

Total

3

Last Release

2869d ago

Major Versions

v0.0.1 → v1.0.02016-03-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d885dbaffc29546726dd3b366ce3bb221df450608ae7edc7d3a452e297f01eb?d=identicon)[dmmlabo](/maintainers/dmmlabo)

---

Top Contributors

[![YusukeKomatsu](https://avatars.githubusercontent.com/u/17612300?v=4)](https://github.com/YusukeKomatsu "YusukeKomatsu (12 commits)")[![YuzuruS](https://avatars.githubusercontent.com/u/1485195?v=4)](https://github.com/YuzuruS "YuzuruS (4 commits)")[![JunOtani](https://avatars.githubusercontent.com/u/17611712?v=4)](https://github.com/JunOtani "JunOtani (4 commits)")[![tmhashimoto](https://avatars.githubusercontent.com/u/17631059?v=4)](https://github.com/tmhashimoto "tmhashimoto (4 commits)")[![jusuda](https://avatars.githubusercontent.com/u/5259499?v=4)](https://github.com/jusuda "jusuda (2 commits)")[![shinohara-dai](https://avatars.githubusercontent.com/u/17612365?v=4)](https://github.com/shinohara-dai "shinohara-dai (1 commits)")[![matsubo](https://avatars.githubusercontent.com/u/98103?v=4)](https://github.com/matsubo "matsubo (1 commits)")

---

Tags

sdkdmm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmmcomlabo-dmm-sdk-v3/health.svg)

```
[![Health](https://phpackages.com/badges/dmmcomlabo-dmm-sdk-v3/health.svg)](https://phpackages.com/packages/dmmcomlabo-dmm-sdk-v3)
```

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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