PHPackages                             skuio/sku-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. [API Development](/categories/api)
4. /
5. skuio/sku-sdk

ActiveProject[API Development](/categories/api)

skuio/sku-sdk
=============

SKU.io User API.

v0.6.12.8(2y ago)11321MITPHPPHP &gt;=7.1CI failing

Since Sep 18Pushed 2y ago3 watchersCompare

[ Source](https://github.com/skuio/sku-sdk)[ Packagist](https://packagist.org/packages/skuio/sku-sdk)[ RSS](/packages/skuio-sku-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (2)Versions (59)Used By (0)

SKU.io SDK
==========

[](#skuio-sdk)

A PHP package to connect to sku.io User API.

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Example Usage](#test-usage)

Installation
------------

[](#installation)

Installation using composer:

```
composer require skuio/sku-sdk

```

Usage
-----

[](#usage)

- You need to create or get user API credentials from this APIs [User API](https://sku-team.postman.co/collections/7106214-dd7d8359-9d9d-480b-99c0-701c1c84f8d2?version=latest&workspace=c8bc7981-b4f6-4259-8060-e9b7b013382d#2b98e627-d202-4c61-b4ae-82d68241c82f)

    This APIs return

    ```
    {
      "key": "f6a9f775f414ecc550a....",
      "secret": "0a9be418866a453cb9...."
    }
    ```
- Use this credentials to connect with sku.io user api (`username`, `password`).
- Set the SDK configurations:

    - username
    - password
    - environment

    > you can set `url` or `dev_url` if you want to change your testing domains.
- the SDK handle response automatically and you code get the results using these three functions:

    - `getCode()`: returns http response status of i.e (200,500 ..).
    - `getResponse()`: returns the JSON format response (response also return errors like validation errors ..etc).
    - `getCurlError()`: returns the `curl` error.

Example Usage
-------------

[](#example-usage)

Here is an example of a function used to get products from sku.io:

```
use Skuio\Sdk\Sdk;
use Skuio\Sdk\Request;
use Skuio\Sdk\Resource\Products;

public function getProducts()
{
    Sdk::config( [ 'username' => $username, 'password' => $password, 'environment' => Sdk::DEVELOPMENT ] );

    $productsRequest = new Request();
    $productsRequest->setConjunction( 'and' );
    $productsRequest->addFilter( 'sku', '=', '5333180491623' );
    $productsRequest->setLimit( 15 );
    $productsRequest->setPage( 1 );

    $products = new Products();
    $products = $products->get( $productsRequest );

    return $products->getResponse();
}
```

And you can use the base `Sdk` class

```
use Skuio\Sdk\Sdk;

public function testConnection()
{
    Sdk::config( [ 'username' => $username, 'password' => $password, 'environment' => Sdk::DEVELOPMENT ] );

    $sdk = new Sdk();
    $res = $sdk->authorizedRequest( '/vendors' );

    return $res->getResponse();
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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 ~27 days

Recently: every ~259 days

Total

58

Last Release

846d ago

PHP version history (2 changes)v0.01-betaPHP &gt;=7.0

v0.5.1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/98c4ccd30c603c308c019ed70f0183cb16a548f58a3bcd421f77b2bed36c2d8d?d=identicon)[skuio](/maintainers/skuio)

---

Top Contributors

[![aelsaidy](https://avatars.githubusercontent.com/u/18082351?v=4)](https://github.com/aelsaidy "aelsaidy (72 commits)")[![brightantwiboasiako](https://avatars.githubusercontent.com/u/8937063?v=4)](https://github.com/brightantwiboasiako "brightantwiboasiako (22 commits)")[![kmizzi](https://avatars.githubusercontent.com/u/6530574?v=4)](https://github.com/kmizzi "kmizzi (4 commits)")[![omnilesolutions](https://avatars.githubusercontent.com/u/58987176?v=4)](https://github.com/omnilesolutions "omnilesolutions (1 commits)")

---

Tags

phpskuapisdksku.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/skuio-sku-sdk/health.svg)

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

###  Alternatives

[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[jeffreyhyer/alpaca-trade-api-php

PHP SDK for the Alpaca trade API

285.0k](/packages/jeffreyhyer-alpaca-trade-api-php)[pancake/sdk

An SDK for developing with the Pancake REST API.

143.1k](/packages/pancake-sdk)

PHPackages © 2026

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