PHPackages                             curse89/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. [API Development](/categories/api)
4. /
5. curse89/aliexpress-api-client-local

ActiveLibrary[API Development](/categories/api)

curse89/aliexpress-api-client-local
===================================

API client implementation for new AliExpress API version.

01271PHP

Since Jul 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/curse89/aliexpress-api-client-local)[ Packagist](https://packagist.org/packages/curse89/aliexpress-api-client-local)[ RSS](/packages/curse89-aliexpress-api-client-local/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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

17

—

LowBetter than 6% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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/f643ad2898245feeab74cf0c5f96d4926d09c55a68b2091d099b118a01e3c310?d=identicon)[curse89](/maintainers/curse89)

---

Top Contributors

[![GrishaginEvgeny](https://avatars.githubusercontent.com/u/86664716?v=4)](https://github.com/GrishaginEvgeny "GrishaginEvgeny (6 commits)")[![azgalot](https://avatars.githubusercontent.com/u/13585657?v=4)](https://github.com/azgalot "azgalot (3 commits)")[![curse89](https://avatars.githubusercontent.com/u/58438482?v=4)](https://github.com/curse89 "curse89 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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