PHPackages                             ecomlogic/php-sdk - 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. ecomlogic/php-sdk

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

ecomlogic/php-sdk
=================

PHP client for eComlogic API

v1.0.7(8y ago)078MITPHP &gt;=5.4.0

Since Jun 16Compare

[ Source](https://github.com/gwinn/php-sdk)[ Packagist](https://packagist.org/packages/ecomlogic/php-sdk)[ Docs](http://www.ecomlogic.com/)[ RSS](/packages/ecomlogic-php-sdk/feed)WikiDiscussions Synced 2w ago

READMEChangelog (4)Dependencies (2)Versions (9)Used By (0)

eComlogic API PHP client
========================

[](#ecomlogic-api-php-client)

PHP-client for [eComlogic API](http://www.ecomlogic.com/docs/Developers/ApiVersion5).

Requirements
------------

[](#requirements)

- PHP 5.4 and above
- PHP's cURL support

Install
-------

[](#install)

1. Get [composer](https://getcomposer.org/download/)
2. Run into your project directory:

```
composer require ecomlogic-com/php-sdk 1.* --no-dev
```

If you have not used `composer` before, include autoloader into your project.

```
require 'path/to/vendor/autoload.php';
```

Usage
-----

[](#usage)

### Get order

[](#get-order)

```
$client = new \Ecomlogic\ApiClient(
    'https://demo.ecomlogic.com',
    'T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH',
    'v5'
);

try {
    $response = $client->request->ordersGet('M-2342');
} catch (\Ecomlogic\Exception\CurlException $e) {
    echo "Connection error: " . $e->getMessage();
}

if ($response->isSuccessful()) {
    echo $response->order['totalSumm'];
    // or $response['order']['totalSumm'];
    // or
    //    $order = $response->getOrder();
    //    $order['totalSumm'];
} else {
    echo sprintf(
        "Error: [HTTP-code %s] %s",
        $response->getStatusCode(),
        $response->getErrorMsg()
    );

    // error details
    if (isset($response['errors'])) {
        print_r($response['errors']);
    }
}
```

### Create order

[](#create-order)

```
$client = new \Ecomlogic\ApiClient(
    'https://demo.ecomlogic.com',
    'T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH',
    'v4'
);

try {
    $response = $client->request->ordersCreate(array(
        'externalId' => 'some-shop-order-id',
        'firstName' => 'John',
        'lastName' => 'Doe',
        'items' => array(
            //...
        ),
        'delivery' => array(
            'code' => 'dhl',
        )
    ));
} catch (\Ecomlogic\Exception\CurlException $e) {
    echo "Connection error: " . $e->getMessage();
}

if ($response->isSuccessful() && 201 === $response->getStatusCode()) {
    echo 'Order successfully created. Order ID into eComlogic = ' . $response->id;
        // or $response['id'];
        // or $response->getId();
} else {
    echo sprintf(
        "Error: [HTTP-code %s] %s",
        $response->getStatusCode(),
        $response->getErrorMsg()
    );

    // error details
    if (isset($response['errors'])) {
        print_r($response['errors']);
    }
}
```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~18 days

Total

8

Last Release

3218d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477726?v=4)[Alex Lushpai](/maintainers/gwinn)[@gwinn](https://github.com/gwinn)

---

Tags

apiresteComlogic

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ecomlogic-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ecomlogic-php-sdk/health.svg)](https://phpackages.com/packages/ecomlogic-php-sdk)
```

###  Alternatives

[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.8M280](/packages/nategood-httpful)[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1556.2k1](/packages/mediamonks-rest-api-bundle)

PHPackages © 2026

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