phpsoftbox/wildberries

Wildberries API client component for the PhpSoftBox framework

Maintainers

Package info

github.com/phpsoftbox/wildberries

pkg:composer/phpsoftbox/wildberries

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-04-13 20:25 UTC

This package is auto-updated.

Last update: 2026-04-13 20:27:53 UTC


README

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);
  • ответы в PhpSoftBox\Collection\Collection;
  • WildberriesException со статусом и payload.

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();