PHPackages                             oxy-coach/aliexpress-api-client-local - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. oxy-coach/aliexpress-api-client-local

ActiveLibrary[HTTP &amp; Networking](/categories/http)

oxy-coach/aliexpress-api-client-local
=====================================

API client implementation for new AliExpress API version.

v2.0.1(3y ago)0444MITPHPPHP &gt;=7.3.0

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/oxy-coach/aliexpress-api-client-local)[ Packagist](https://packagist.org/packages/oxy-coach/aliexpress-api-client-local)[ Docs](http://www.retailcrm.pro/)[ RSS](/packages/oxy-coach-aliexpress-api-client-local/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (26)Versions (4)Used By (0)

[![Build Status](https://github.com/oxy-coach/aliexpress-api-client-local/workflows/ci/badge.svg)](https://github.com/retailcrm/aliexpress-top-client/actions)[![Latest stable](https://camo.githubusercontent.com/e33090e7be0dfb596fad2f2be23cd1493539e8474b232bea13d8dca153358bc2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f78792d636f6163682f616c69657870726573732d6170692d636c69656e742d6c6f63616c2e737667)](https://packagist.org/packages/oxy-coach/aliexpress-api-client-local)[![PHP from Packagist](https://camo.githubusercontent.com/7e4bef42577f9be122eb52594d6c60e7e0cccff1cdade8c4d9931c68ce88bb6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f78792d636f6163682f616c69657870726573732d6170692d636c69656e742d6c6f63616c2e737667)](https://packagist.org/packages/oxy-coach/aliexpress-api-client-local)

AliExpress API client for new API version
=========================================

[](#aliexpress-api-client-for-new-api-version)

API client implementation for AliExpress local API.

Usage
-----

[](#usage)

1. This library uses `php-http/httplug` under the hood. If you don't want to bother with details, just install library and it's dependencies via Composer:

```
composer require php-http/curl-client nyholm/psr7 php-http/message retailcrm/aliexpress-top-client
```

Details about those third-party libraries and why you need to install them can be found [here](http://docs.php-http.org/en/latest/httplug/users.html).

2. Instantiate client using `ClientFactory`:

```
use Simla\Component\AppData;
use Simla\Factory\ClientFactory;

$client = ClientFactory::createClient(
    AppData::ENDPOINT,
    'your jwt token'
);
```

3. Create and fill request data. All requests and responses use the same naming. Requests live under `RetailCrm\Model\Request` namespace, and responses can be found in the `RetailCrm\Model\Response` namespace. For example, you can instantiate an **order list request** with this code:

```
use Simla\Model\Request\GetOrderListRequest;

$request = new GetOrderListRequest();
```

4. Send request using `Client::sendRequest` like this:

```
/** @var \Simla\Model\Response\GetOrderListResponse $response */
$response = $client->sendRequest(new GetOrderListRequest());
```

Each request uses provided `jwt` **token** for authorization.

**Friendly note.** Use response type annotations. Both client methods which returns responses actually returns `ResponseInterface` (not the PSR one). Actual response type will be determined by the request model. Your IDE will not recognize any response options unless you put a proper type annotation for the response variable.

Customization
-------------

[](#customization)

This library uses Container pattern under the hood. You can pass additional dependencies using `ContainerBuilder`. For example:

```
use Http\Client\Curl\Client;
use Simla\Component\AppData;
use Simla\Component\Environment;
use Nyholm\Psr7\Factory\Psr17Factory;
use Simla\Builder\ClientBuilder;
use Simla\Builder\ContainerBuilder;
use Simla\Component\Logger\StdoutLogger;

$client = new Client();
$logger = new StdoutLogger();
$factory = new Psr17Factory();
$appData = new AppData(AppData::ENDPOINT, 'jwt token');
$container = ContainerBuilder::create()
            ->setEnv(Environment::TEST)
            ->setClient($client)
            ->setLogger($logger)
            ->setStreamFactory($factory)
            ->setRequestFactory($factory)
            ->setUriFactory($factory)
            ->build();
$client = ClientBuilder::create()
            ->setContainer($container)
            ->setAppData($appData)
            ->build();
```

Logger should implement `Psr\Log\LoggerInterface` (PSR-3), HTTP client should implement `Psr\Http\TopClient\TopClientInterface` (PSR-18), HTTP objects must be compliant to PSR-7. You can use your own container if you want to - it must be compliant to PSR-11. This is strongly discouraged because it'll be much easier to just integrate library with your own application, and your own DI system.

The simplest example of client initialization without using `ClientFactory` looks like this:

```
use Simla\Component\AppData;
use Simla\Builder\ClientBuilder;
use Simla\Builder\ContainerBuilder;

$appData = new AppData(AppData::ENDPOINT, 'jwt token');
$client = ClientBuilder::create()
            ->setContainer(ContainerBuilder::create()->build())
            ->setAppData($appData)
            ->build();
```

In fact, `ClientFactory` works just like this under the hood.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

1370d ago

Major Versions

v1.0.0 → v2.0.02022-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e32476c67f7bbcef24a93e245a6f7cf303e57c40932e8868f2d2bfad91c1897?d=identicon)[oxy-coach](/maintainers/oxy-coach)

---

Top Contributors

[![oxy-coach](https://avatars.githubusercontent.com/u/42410704?v=4)](https://github.com/oxy-coach "oxy-coach (1 commits)")

---

Tags

apirestretailCRMAliexpress

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/oxy-coach-aliexpress-api-client-local/health.svg)

```
[![Health](https://phpackages.com/badges/oxy-coach-aliexpress-api-client-local/health.svg)](https://phpackages.com/packages/oxy-coach-aliexpress-api-client-local)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[retailcrm/api-client-php

PHP client for RetailCRM API

68981.8k1](/packages/retailcrm-api-client-php)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

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