PHPackages                             phpsoftbox/wildberries - 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. phpsoftbox/wildberries

ActiveLibrary[API Development](/categories/api)

phpsoftbox/wildberries
======================

Wildberries API client component for the PhpSoftBox framework

12PHP

Since Apr 13Pushed 3mo agoCompare

[ Source](https://github.com/phpsoftbox/wildberries)[ Packagist](https://packagist.org/packages/phpsoftbox/wildberries)[ RSS](/packages/phpsoftbox-wildberries/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpSoftBox Wildberries
======================

[](#phpsoftbox-wildberries)

About
-----

[](#about)

`phpsoftbox/wildberries` — API-клиент Wildberries на базе PSR-18.

Компонент включает:

- `WildberriesApiClient` с поддержкой нескольких API-хостов;
- универсальные HTTP-методы `get/post/put/patch/delete/request`;
- секции API, сгенерированные из OpenAPI (`general`, `products`, `ordersFbs`, `ordersDbw`, `ordersDbs`, `inStorePickup`, `ordersFbw`, `promotion`, `communications`, `tariffs`, `analytics`, `reports`, `finances`);
- ответы в `WildberriesApiResponse`, совместимом с `PhpSoftBox\Collection\Collection`;
- `WildberriesApiResponse::makeDto()` для явного преобразования ответа в DTO;
- `WildberriesException` со статусом и payload.

Quick Start
-----------

[](#quick-start)

```
use PhpSoftBox\Http\Message\RequestFactory;
use PhpSoftBox\Http\Message\StreamFactory;
use PhpSoftBox\Wildberries\WildberriesApiClient;

$client = new WildberriesApiClient(
    token: $_ENV['WILDBERRIES_API_TOKEN'],
    httpClient: $psr18Client,
    requestFactory: new RequestFactory(),
    streamFactory: new StreamFactory(),
    authorizationScheme: 'Bearer',
);

// Низкоуровневый вызов
$stocks = $client->marketplace()->get('/api/v3/orders/new');

// Вызов через секцию API
$parents = $client->products()->objectParentAll();
```

DTO ответы
----------

[](#dto-ответы)

Wrapper-методы остаются совместимыми с `Collection`. Если для endpoint-а есть сгенерированный DTO, его можно получить явно:

```
$parents = $client->products()->objectParentAll()->makeDto();
```

Для низкоуровневых вызовов работает та же карта DTO:

```
$response = $client->marketplace()
    ->put('/api/v3/orders/123/meta/gtin', ['gtin' => '04601234567890'])
    ->makeDto();
```

Генерация DTO
-------------

[](#генерация-dto)

DTO генерируются из локальных OpenAPI YAML файлов в `docs/`:

```
vendor/bin/psb wildberries:openapi:generate-dto
```

Команда обновляет `src/Dto` и `src/Dto/WildberriesResponseDtoMap.php`. Wrapper-классы не меняются: основной контракт остается `WildberriesApiResponse`/`Collection`, а DTO создаются явно через `makeDto()`.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0279d150240c97d210034878b0467462246dc14d29b5618157ff6a8be49a50e3?d=identicon)[inspector-who](/maintainers/inspector-who)

---

Top Contributors

[![inspector-who](https://avatars.githubusercontent.com/u/6973963?v=4)](https://github.com/inspector-who "inspector-who (1 commits)")

### Embed Badge

![Health badge](/badges/phpsoftbox-wildberries/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k18](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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