PHPackages                             dakword/wbseller - 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. dakword/wbseller

AbandonedArchivedLibrary[API Development](/categories/api)

dakword/wbseller
================

Wildberries API client

4.31.3(1y ago)506.9k↓36.5%22[3 issues](https://github.com/Dakword/WBSeller/issues)MITPHPPHP ^7.4 || ^8.0

Since Dec 19Pushed 1y ago5 watchersCompare

[ Source](https://github.com/Dakword/WBSeller)[ Packagist](https://packagist.org/packages/dakword/wbseller)[ RSS](/packages/dakword-wbseller/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (59)Used By (0)

WBSeller API
============

[](#wbseller-api)

Библиотека для работы с **Wildberries API**

📝 [Лог изменений](CHANGELOG.md)

```
$wbSellerAPI = new \Dakword\WBSeller\API($options = [
    'masterkey' => 'token',
    //'keys' => [...],
    //'apiurls' => [...],
    //'locale' => 'ru'
]);
// API Контента
$contentAPI = $wbSellerAPI->Content();
$contentAPI->getCardsList(); // Получить список карточек
```

### Поддерживаемые API

[](#поддерживаемые-api)

📖 [Документация](/docs/API.md)

APIEndpointОбщее$wbSellerAPI-&gt;[**Common()**](/docs/Common.md)Контент$wbSellerAPI-&gt;[**Content()**](/docs/Content.md)Цены и скидки$wbSellerAPI-&gt;[**Prices()**](/docs/Prices.md)Маркетплейс$wbSellerAPI-&gt;[**Marketplace()**](/docs/Marketplace.md)Статистика$wbSellerAPI-&gt;[**Statistics()**](/docs/Statistics.md)Аналитика$wbSellerAPI-&gt;[**Analytics()**](/docs/Analytics.md)Продвижение$wbSellerAPI-&gt;[**Adv()**](/docs/Adv.md)Рекомендации$wbSellerAPI-&gt;[**Recommends()**](/docs/Recommends.md)Вопросы$wbSellerAPI-&gt;[**Questions()**](/docs/Questions.md)Отзывы$wbSellerAPI-&gt;[**Feedbacks()**](/docs/Feedbacks.md)Тарифы$wbSellerAPI-&gt;[**Tariffs()**](/docs/Tariffs.md)Чат с покупателями$wbSellerAPI-&gt;[**Chat()**](/docs/Chat.md)Возвраты покупателями$wbSellerAPI-&gt;[**Returns()**](/docs/Returns.md)Документы$wbSellerAPI-&gt;[**Documents()**](/docs/Documents.md)Календарь акций$wbSellerAPI-&gt;[**Calendar()**](/docs/Calendar.md)Поставки$wbSellerAPI-&gt;[**Supplies()**](/docs/Supplies.md)### Декодирование токена

[](#декодирование-токена)

```
try {
    $token = new \Dakword\WBSeller\APIToken('eyJhbGciOiJFUzI1NiIs...');
} catch (\Dakword\WBSeller\Exception\WBSellerException $exc) {
    echo $exc->getMessage(); // Неверный формат токена
}

echo $token->expireDate()->format('Y-m-d H:i:s'); // 2024-09-20 16:21:04
echo $token->isExpired() ? 'Просроченный' : 'Действительный';
echo $token->isReadOnly() ? 'Только чтение' : 'Чтение и запись';
echo $token->isTest() ? 'Для тестовой среды' : 'Рабочий';
echo $token->sellerId(); // 284034
echo $token->sellerUUID(); // 123e4567-e89b-12d3-a456-426655440000
echo $token->accessTo('marketplace') ? 'Yes' : 'No'; // Yes
echo $token->accessTo('common') ? 'Yes' : 'No'; // Yes
echo $token->accessTo('chat') ? 'Yes' : 'No'; // No
echo implode(',', $token->accessList()); // 'Цены и скидки, Маркетплейс, Документы'
echo implode(',', array_keys($token->accessList())); // '3, 4, 12' - Позиции бита
echo $token; // eyJhbGciOiJFUzI1NiIs...
print_r($token->getPayload());
```

### Примеры использования WBSeller API

[](#примеры-использования-wbseller-api)

```
$wbSellerAPI = new \Dakword\WBSeller\API([
    'keys' => [
        'content' => 'Content_key',
        'feedbacks' => 'FB_key',
        'marketplace' => 'Marketplace_key',
        'questions' => 'FB_key',
    ],
    'masterkey' => 'multi_key', // 'content' + 'prices' + ...
    'apiurls' => [
        'content'         => 'https://suppliers-api.wb.ru',
        'feedbacks'       => 'https://feedbacks-api.wildberries.ru',
        'adv'             => 'https://advert-api-sandbox.wildberries.ru',
        'analytics'       => 'https://abc.site.ru',
    ],
    'locale' => 'ru'
]);

// Proxy
$wbSellerAPI->useProxy('http://122.123.123.123:8088');
// Locale
$wbSellerAPI->setLocale('en');

$contentApi = $wbSellerAPI->Content();
$pricesApi = $wbSellerAPI->Prices();
$marketApi = $wbSellerAPI->Marketplace();

// subAPI контента - теги
$tagsApi = $wbSellerAPI->Content()->Tags();

// Получить список НМ
$result = $contentApi->getCardsList();
if (!$result->error) {
    var_dump($result->cards, $result->cursor);
}

// Получение информации по ценам и скидкам
$info = $pricesApi->getPrices();
var_dump($info);

// Cписок складов поставщика
$warehouses = $wbSellerAPI->Marketplace()->Warehouses()->list();
var_dump($warehouses);

// Заказы FBS (С автоповтором запросов 💡)
$orders = $marketApi->retryOnTooManyRequests(10, 1000)->getOrders();
var_dump($orders);

// Создание КТ
try {
    $createCardResult = $contentApi->createCard([
        'subjectID' => 105,
        'variants' => [
            [
                'vendorCode' => 'A0001',
                'title' => 'Наименование',
                'description' => 'Описание',
                'brand' => 'Бренд',
                'dimensions' => [
                    'length' => 55,
                    'width' => 40,
                    'height' => 15,
                ],
                'characteristics' => [
                    [
                        'id' => 12,
                        'value' => 'свободный крой',
                    ],
                    [
                        'id' => 88952,
                        'value' => 200,
                    ],
                    [
                        'id' => 14177449,
                        'value' => ['red'],
                    ],
                ],
                'sizes' => [
                    [
                        'techSize' => '39',
                        'wbSize' => '',
                        'price' => (int) 3999.99,
                        'skus' => [ '1000000001' ]
                    ]
                ],
            ],
        ]
    ]);
    if ($createCardResult->error) {
        echo 'Ошибка создания карточки: ' . $createCardResult->errorText;
    } else {
        echo 'Запрос на создание карточки отправлен';
    }
} catch (\Dakword\WBSeller\Exception\WBSellerException $exc) {
    echo 'Исключение при создании карточки: ' . $exc->getMessage();
}
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% 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 ~7 days

Total

58

Last Release

487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d7767ebb9d34cc72a528e81d16838c85acc71476cf4c51ae981c6e013454d83?d=identicon)[Dakword](/maintainers/Dakword)

---

Top Contributors

[![Dakword](https://avatars.githubusercontent.com/u/9961503?v=4)](https://github.com/Dakword "Dakword (117 commits)")[![Blurq](https://avatars.githubusercontent.com/u/62217550?v=4)](https://github.com/Blurq "Blurq (1 commits)")[![KamilZakirov](https://avatars.githubusercontent.com/u/6568584?v=4)](https://github.com/KamilZakirov "KamilZakirov (1 commits)")[![OlegAnTo2000](https://avatars.githubusercontent.com/u/143202406?v=4)](https://github.com/OlegAnTo2000 "OlegAnTo2000 (1 commits)")

---

Tags

apiopenapiphpphp-librarywildberriesphpapiopenapiwildberries

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dakword-wbseller/health.svg)

```
[![Health](https://phpackages.com/badges/dakword-wbseller/health.svg)](https://phpackages.com/packages/dakword-wbseller)
```

###  Alternatives

[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

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

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

1.7k409.0k6](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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