PHPackages                             mdurys/skapiec-api - 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. mdurys/skapiec-api

ActiveLibrary[API Development](/categories/api)

mdurys/skapiec-api
==================

Client for skapiec.pl API

v1.0.5(10y ago)376MITPHPPHP &gt;=5.3.0

Since Mar 3Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mdurys/skapiec-api)[ Packagist](https://packagist.org/packages/mdurys/skapiec-api)[ Docs](https://github.com/mdurys/skapiec-api)[ RSS](/packages/mdurys-skapiec-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (7)Used By (0)

skapiec-api [![Build Status](https://camo.githubusercontent.com/556fcafe1301b59181bdd7983f04a510bf43e68542668762bca9a7b09dc6f92e/68747470733a2f2f7472617669732d63692e6f72672f6d64757279732f736b61706965632d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mdurys/skapiec-api)
=================================================================================================================================================================================================================================================================================================

[](#skapiec-api-)

Library for accessing Skąpiec.pl API. See  for more details.

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

[](#installation)

Using Composer:

```
composer.phar require mdurys/skapiec-api=dev-master

```

Usage
-----

[](#usage)

Creating API client object:

```
$api = new MDurys\SkapiecAPI\Client($username, $password);

```

The library maps most of the API functions directly to class methods. For example, API's `beta_listDepartments()` function is called like this:

```
$result = $api->beta_listDepartments();

```

If a function has required arguments they should be given in the same order as described on , for example `beta_getProductInfo()`, which requires `id` and `category` arguments is called like this:

```
$result = $api->beta_getProductInfo($id, $category);

```

There are a few functions which have two mutually exclusive required parameters, like `beta_getOffersBestPrice()`, which requires either `component` (i.e. an ID in our database) or `id_skapiec` (i.e. an ID from Skapiec.pl database). In such cases the library offers two distinct functions, e.g.

```
$result1 = $api->beta_getOffersBestPriceBySkapiecId($skapiecId);
$result2 = $api->beta_getOffersBestPriceByComponent($componentId);

```

Optional arguments can be supplied using `setXXX()` methods. For example to list products from a category with `offset` and `amount` arguments one should call:

```
$result = $api
    ->setAmount($amount)
    ->setOffset($offset)
    ->beta_listProducts($categoryId);

```

With majority of functions that return information about a product or a category one can select which fields to populate. This can be done using three methods:

- `onlyField()` - Only indicated fields will be included in the result.
- `includeField()` - Adds indicated fields to the ones returned by default.
- `excludeField()` - Excludes indicated fields from the ones returned by default. Each of these methods accepts variable number of arguments.

Example:

```
$result = $api
    ->onlyField('name', 'vendor', 'model')
    ->setFromTime(time() - 86400)
    ->beta_listNewProducts($categoryId);

```

Skapiec.pl imposes limits on number of API calls within certain time. To assure that limits are not exceeded one can use `setQueryDelay()` method. For example, to wait a quater of a second between subsequent API calls use this code:

```
$api->setQueryDelay(0.25);

```

Bugs
----

[](#bugs)

`beta_getProductMostPopular()` doesn't accept 0 as a valid offset. It's a problem on the API side. It's already reported to Skapiec.pl and hopefully it'll be fixed sooner than later.

`beta_getDealerInfo()` can return empty result for valid shop IDs. Apparently this is ok with Skapiec, because shop information is maintained by shop iteself, not Skapiec and some shops do not provide that information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~52 days

Recently: every ~61 days

Total

6

Last Release

3825d ago

### Community

---

Top Contributors

[![mdurys](https://avatars.githubusercontent.com/u/2362246?v=4)](https://github.com/mdurys "mdurys (45 commits)")[![bluemanos](https://avatars.githubusercontent.com/u/9991002?v=4)](https://github.com/bluemanos "bluemanos (2 commits)")

### Embed Badge

![Health badge](/badges/mdurys-skapiec-api/health.svg)

```
[![Health](https://phpackages.com/badges/mdurys-skapiec-api/health.svg)](https://phpackages.com/packages/mdurys-skapiec-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M271](/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)
