PHPackages                             gam6itko/ozon-seller - 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. gam6itko/ozon-seller

ActiveLibrary[API Development](/categories/api)

gam6itko/ozon-seller
====================

Ozon Seller Api for transhore sales

v0.25.0(1mo ago)11647.3k↓77.6%51MITPHPPHP &gt;=7.1CI failing

Since Mar 14Pushed 1mo ago8 watchersCompare

[ Source](https://github.com/gam6itko/ozon-seller)[ Packagist](https://packagist.org/packages/gam6itko/ozon-seller)[ RSS](/packages/gam6itko-ozon-seller/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (33)Versions (80)Used By (0)

Ozon-seller API client
======================

[](#ozon-seller-api-client)

[![tests](https://github.com/gam6itko/ozon-seller/actions/workflows/tests.yaml/badge.svg)](https://github.com/gam6itko/ozon-seller/actions/workflows/tests.yaml)[![Coverage Status](https://camo.githubusercontent.com/af8a864b43bfcdb1ab8f05c302d61856584a1ca194fe564702b25abf4ef32e32/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67616d3669746b6f2f6f7a6f6e2d73656c6c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/gam6itko/ozon-seller?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/ac68130764bc020c66e7ea8fa9cc402d7f1f656afdac38977dca58244258c2df/68747470733a2f2f706f7365722e707567782e6f72672f67616d3669746b6f2f6f7a6f6e2d73656c6c65722f76)](//packagist.org/packages/gam6itko/ozon-seller)[![Total Downloads](https://camo.githubusercontent.com/4f294bd2e4d2200f5a18481fb96fe46ba080d58c87ae42f2688997496a561c6c/68747470733a2f2f706f7365722e707567782e6f72672f67616d3669746b6f2f6f7a6f6e2d73656c6c65722f646f776e6c6f616473)](//packagist.org/packages/gam6itko/ozon-seller)[![Latest Unstable Version](https://camo.githubusercontent.com/756d122dfcc61ad2de1e0281641fdfeec9b08119e1bcd47450559e8abf13d767/68747470733a2f2f706f7365722e707567782e6f72672f67616d3669746b6f2f6f7a6f6e2d73656c6c65722f762f756e737461626c65)](//packagist.org/packages/gam6itko/ozon-seller)[![License](https://camo.githubusercontent.com/b44066d27d511e7315c89b5388f568c73532d746a9043fa59b9ae6215b41d4e8/68747470733a2f2f706f7365722e707567782e6f72672f67616d3669746b6f2f6f7a6f6e2d73656c6c65722f6c6963656e7365)](//packagist.org/packages/gam6itko/ozon-seller)

Документация Ozon Api
---------------------

[](#документация-ozon-api)

Установка
---------

[](#установка)

```
composer require gam6itko/ozon-seller
```

Для взаимодействия библиотеки с Ozon-Api нужно дополнительно установить реализации [PSR-18: HTTP Client](https://packagist.org/providers/psr/http-client-implementation) и [PSR-17: HTTP Factories](https://packagist.org/providers/psr/http-factory-implementation).

### Использование с Symfony

[](#использование-с-symfony)

[https://symfony.com/doc/current/components/http\_client.html#psr-18-and-psr-17](https://symfony.com/doc/current/components/http_client.html#psr-18-and-psr-17)

```
composer require symfony/http-client
composer require nyholm/psr7
```

```
use Gam6itko\OzonSeller\Service\V1\ProductService;
use Symfony\Component\HttpClient\Psr18Client;

$config = [$_SERVER['CLIENT_ID'], $_SERVER['API_KEY'], $_SERVER['API_URL']];
$client = new Psr18Client();
$svc = new ProductService($config, $client);
//do stuff
```

### Использование без Symfony

[](#использование-без-symfony)

```
composer require php-http/guzzle6-adapter
```

```
use Gam6itko\OzonSeller\Service\V1\CategoriesService;
use GuzzleHttp\Client as GuzzleClient;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
use Http\Factory\Guzzle\RequestFactory;
use Http\Factory\Guzzle\StreamFactory;

$config = [
    'clientId' => '',
    'apiKey' => '',
    'host' => 'http://cb-api.ozonru.me/'
];
$client = new GuzzleAdapter(new GuzzleClient());
$requestFactory = new RequestFactory();
$streamFactory = new StreamFactory();

$svc = new CategoriesService($config, $client, $requestFactory, $streamFactory);
//do stuff
```

Реализованные методы
--------------------

[](#реализованные-методы)

Чтобы узнать какой класс и метод реализуют запрос на нужный URL воспользуйтесь скриптом `bin/is_realized.php`

```
php bin/is_realized.php | grep /v2/posting/fbs/get
```

output

```
/v2/posting/fbs/get: Gam6itko\OzonSeller\Service\V2\Posting\FbsService::get
/v2/posting/fbs/get-by-barcode: NotRealized
```

Автор не всегда успевает добавлять реализации новых методов. Если нужного вам метода нет в библиотеке, то не стесняйтесь открыть issue или PR.

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

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

Больше примеров смотрите в папке `tests/Service/`

### Categories

[](#categories)

```
use Gam6itko\OzonSeller\Service\V1\CategoriesService;
use GuzzleHttp\Client as GuzzleClient;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;

$config = [
    'clientId' => '',
    'apiKey' => '',
    'host' => 'http://cb-api.ozonru.me/' //sandbox
];
$adapter = new GuzzleAdapter(new GuzzleClient());
$svc = new CategoriesService($config, $adapter);

//Server Response example: https://cb-api.ozonru.me/apiref/en/#t-title_categories
$categoryTree = $svc->tree();

//Server Response example: https://cb-api.ozonru.me/apiref/en/#t-title_get_categories_attributes
$attributes = $svc->attributes(17038826);
```

### Posting Crossborder

[](#posting-crossborder)

#### get info

[](#get-info)

`/v2/posting/crossborder/get`

```
use Gam6itko\OzonSeller\Service\V2\Posting\CrossborderService;
use GuzzleHttp\Client as GuzzleClient;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;

$config = [
    'clientId' => '',
    'apiKey' => '',
    'host' => 'http://cb-api.ozonru.me/'
];
$adapter = new GuzzleAdapter(new GuzzleClient());
$svc = new CrossborderService($config, $adapter);

$postingNumber = '39268230-0002-3';
$orderArr = $svc->get($postingNumber);
echo json_encode($orderArr);
```

```
{
  "result": [
    {
      "address": {
        "address_tail": "г. Москва, ул. Центральная, 1",
        "addressee": "Петров Иван Владимирович",
        "city": "Москва",
        "comment": "",
        "country": "Россия",
        "district": "",
        "phone": "+7 495 123-45-67",
        "region": "Москва",
        "zip_code": "101000"
      },
      "auto_cancel_date": "2019-11-18T11:30:11.571Z",
      "cancel_reason_id": 76,
      "created_at": "2019-11-18T11:30:11.571Z",
      "customer_email": "petrov@email.com",
      "customer_id": 60006,
      "in_process_at": "2019-11-18T11:30:11.571Z",
      "order_id": 77712345,
      "order_nr": "1111444",
      "posting_number": "39268230-0002-3",
      "products": [
        {
          "name": "Фитнес-браслет",
          "offer_id": "DEP-1234",
          "price": "1900.00",
          "quantity": 1,
          "sku": 100056
        }
      ],
      "shipping_provider_id": 0,
      "status": "awaiting_approve",
      "tracking_number": ""
    }
  ]
}
```

### Products

[](#products)

#### import

[](#import)

`/v1/product/import`

```
use Gam6itko\OzonSeller\Service\V1\ProductService;
use GuzzleHttp\Client as GuzzleClient;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;

$config = [
    'clientId' => '',
    'apiKey' => '',
    // use prod host by default
];
$adapter = new GuzzleAdapter(new GuzzleClient());
$svcProduct = new ProductService($config, $adapter);
$product = [
    'barcode'        => '8801643566784',
    'description'    => 'Red Samsung Galaxy S9 with 512GB',
    'category_id'    => 17030819,
    'name'           => 'Samsung Galaxy S9',
    'offer_id'       => 'REDSGS9-512',
    'price'          => '79990',
    'old_price'      => '89990',
    'premium_price'  => '75555',
    'vat'            => '0',
    'vendor'         => 'Samsung',
    'vendor_code'    => 'SM-G960UZPAXAA',
    'height'         => 77,
    'depth'          => 11,
    'width'          => 120,
    'dimension_unit' => 'mm',
    'weight'         => 120,
    'weight_unit'    => 'g',
    'images'         => [
        [
            'file_name' => 'https://ozon-st.cdn.ngenix.net/multimedia/c1200/1022555115.jpg',
            'default'   => true,
        ],
        [
            'file_name' => 'https://ozon-st.cdn.ngenix.net/multimedia/c1200/1022555110.jpg',
            'default'   => false,
        ],
        [
            'file_name' => 'https://ozon-st.cdn.ngenix.net/multimedia/c1200/1022555111.jpg',
            'default'   => false,
        ],
    ],
    'attributes'     => [
        [
            'id'    => 8229,
            'value' => '4747',
        ],
        [
            'id'    => 9048,
            'value' => 'Samsung Galaxy S9',
        ],
        [
            'id'    => 4742,
            'value' => '512 ГБ',
        ],

        [
            'id'         => 4413,
            'collection' => ['1', '2', '13'],
        ],
        [
            'id'                 => 4018,
            'complex_collection' => [
                [
                    'collection' => [
                        [
                            'id'    => 4068,
                            'value' => 'Additional video',
                        ],
                        [
                            'id'    => 4074,
                            'value' => '5_-NKRVn7IQ',
                        ],
                    ],
                ],
                [
                    'collection' => [
                        [
                            'id'    => 4068,
                            'value' => 'Another one video',
                        ],
                        [
                            'id'    => 4074,
                            'value' => '5_-NKRVn7IQ',
                        ],
                    ],
                ],
            ],
        ],
    ],
];

$svcProduct->import($product);
// or
$svcProduct->import([$product, $product1, $product2, ...]);
// or
$res = $svcProduct->import(['items' => [$product, $product1, $product2, ...] ]);
echo $res['task_id']; // save it for checking by `importInfo`
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Recently: every ~50 days

Total

75

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3841197?v=4)[Alexander Strizhak](/maintainers/gam6itko)[@gam6itko](https://github.com/gam6itko)

---

Top Contributors

[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (290 commits)")[![holdmann](https://avatars.githubusercontent.com/u/2150007?v=4)](https://github.com/holdmann "holdmann (9 commits)")[![exlh](https://avatars.githubusercontent.com/u/51967666?v=4)](https://github.com/exlh "exlh (8 commits)")[![stdex](https://avatars.githubusercontent.com/u/4608879?v=4)](https://github.com/stdex "stdex (6 commits)")[![0x543](https://avatars.githubusercontent.com/u/174061756?v=4)](https://github.com/0x543 "0x543 (4 commits)")[![animkaTT](https://avatars.githubusercontent.com/u/14944484?v=4)](https://github.com/animkaTT "animkaTT (3 commits)")[![Jumas-Cola](https://avatars.githubusercontent.com/u/35411590?v=4)](https://github.com/Jumas-Cola "Jumas-Cola (2 commits)")[![f4llou7](https://avatars.githubusercontent.com/u/8020558?v=4)](https://github.com/f4llou7 "f4llou7 (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![aratnikov](https://avatars.githubusercontent.com/u/22659116?v=4)](https://github.com/aratnikov "aratnikov (1 commits)")[![NickMitin](https://avatars.githubusercontent.com/u/95453?v=4)](https://github.com/NickMitin "NickMitin (1 commits)")[![olegpetrov113](https://avatars.githubusercontent.com/u/16045535?v=4)](https://github.com/olegpetrov113 "olegpetrov113 (1 commits)")[![Progmer](https://avatars.githubusercontent.com/u/4754129?v=4)](https://github.com/Progmer "Progmer (1 commits)")[![sergei11156](https://avatars.githubusercontent.com/u/45900383?v=4)](https://github.com/sergei11156 "sergei11156 (1 commits)")[![ElectroMyStyle](https://avatars.githubusercontent.com/u/5159210?v=4)](https://github.com/ElectroMyStyle "ElectroMyStyle (1 commits)")[![VampiRUS](https://avatars.githubusercontent.com/u/433120?v=4)](https://github.com/VampiRUS "VampiRUS (1 commits)")[![Ebykovski](https://avatars.githubusercontent.com/u/3115765?v=4)](https://github.com/Ebykovski "Ebykovski (1 commits)")

---

Tags

ozonozon-apiozon-marketplaceozon-sellerphpapimarketplacesellerRussiaozoncrossborder

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gam6itko-ozon-seller/health.svg)

```
[![Health](https://phpackages.com/badges/gam6itko-ozon-seller/health.svg)](https://phpackages.com/packages/gam6itko-ozon-seller)
```

###  Alternatives

[openai-php/client

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

5.8k28.0M318](/packages/openai-php-client)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[deeplcom/deepl-php

Official DeepL API Client Library

2607.3M115](/packages/deeplcom-deepl-php)[theodo-group/llphant

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

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

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)

PHPackages © 2026

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