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

Abandoned → [https://github.com/priceva/priceva-api-sdk-php](/?search=https%3A%2F%2Fgithub.com%2Fpriceva%2Fpriceva-api-sdk-php)ArchivedLibrary[API Development](/categories/api)

priceva/priceva-sdk-php
=======================

later

v0.7.0(7y ago)1699MITPHPPHP &gt;=5.4

Since Oct 2Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/priceva/priceva-sdk-php)[ Packagist](https://packagist.org/packages/priceva/priceva-sdk-php)[ Docs](https://github.com/priceva/priceva-sdk-php)[ RSS](/packages/priceva-priceva-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (11)Used By (0)

DEPRECATED
==========

[](#deprecated)

The new version available at

Priceva SDK
===========

[](#priceva-sdk)

SDK for Priceva API (PHP)

Getting Started
===============

[](#getting-started)

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

[](#requirements)

- PHP &gt;= 5.4
- cURL library
- JSON library

Installing
----------

[](#installing)

### Via Composer

[](#via-composer)

Go to the project root directory and run:

```
php composer require priceva/priceva-sdk-php
```

or add this string in `require` section of your `composer.json`:

```
"priceva/priceva-sdk-php": "dev-master"

```

and run `composer install`.

### Without Composer

[](#without-composer)

1. Download our library.
2. Include files in your php root file: ```
    include_once '/path/to/lib/PricevaAPI.php';
    include_once '/path/to/lib/PricevaException.php';
    include_once '/path/to/lib/Request.php';
    include_once '/path/to/lib/Result.php';
    // ...and other our files if it needed
    ```

Use
---

[](#use)

Simplest example:

```
use Priceva\PricevaAPI;

try{
    // or include our files directly, if you don't want to use Composer
    require_once __DIR__ . "/../vendor/autoload.php";

    $api = new PricevaAPI('your_api_key');

    $result = $api->main_ping();

}catch( \Exception $e ){
    // error handler
}
```

Get a list of products:

```
try{
    // or include our files directly, if you don't want to use Composer
    require_once __DIR__ . "/../vendor/autoload.php";

    $api = new PricevaAPI('your_api_key');

    $filters = new \Priceva\Params\Filters();
    $sources = new \Priceva\Params\Sources();

    $filters[ 'page' ]      = 1;
    $filters[ 'region_id' ] = 'a';

    $sources[ 'add' ]      = true;
    $sources[ 'add_term' ] = true;

    $products = $api->product_list($filters, $sources);
}catch( \Exception $e ){
    // error handler
}
```

Get a list of reports:

```
try{
    // or include our files directly, if you don't want to use Composer
    require_once __DIR__ . "/../vendor/autoload.php";

    $api = new PricevaAPI('your_api_key');

    $filters        = new \Priceva\Params\Filters();
    $product_fields = new \Priceva\Params\ProductFields();

    $filters[ 'page' ]      = 1;
    $filters[ 'region_id' ] = 'a';

    // we use 'flat model' of parameters here
    $product_fields[] = 'client_code';
    $product_fields[] = 'articul';

    $reports = $api->report_list($filters, $product_fields);
}catch( \Exception $e ){
    // error handler
}
```

Work with pagination:

```
$api = new PricevaAPI($api_key);

$filters        = new \Priceva\Params\Filters();
$product_fields = new \Priceva\Params\ProductFields();

$filters[ 'limit' ] = '1000'; // for example
$filters[ 'page' ]  = 1; // strong

... // some filters

$product_fields[] = 'client_code'; // if we need it field in answer
$product_fields[] = 'articul';  // if we need it field in answer

... // some product fields

$reports = $api->report_list($filters, $product_fields);

$pages_cnt = (int)$reports->get_result()->pagination->pages_cnt;

$priceva_products = $reports->get_result()->objects;

process_products($priceva_products); // client function for product processing

while( $pages_cnt > 1 ){
  $filters[ 'page' ] = $pages_cnt--;

  $reports = $api->report_list($filters, $product_fields);

  $priceva_products = $reports->get_result()->objects;

  process_products($priceva_products); // client function for product processing
}
```

API actions
-----------

[](#api-actions)

- main/ping
- main/demo
- product/list
- report/list

Request parameters
------------------

[](#request-parameters)

### Filters

[](#filters)

Applicable in methods: `product/list`, `report/list`. Possible options:

- page
- limit
- category\_id
- brand\_id
- company\_id
- region\_id
- active
- name
- articul
- client\_code

### Sources

[](#sources)

Applicable in methods: `product/list`. Possible options:

- add
- add\_term

### Product fields

[](#product-fields)

Applicable in methods: `report/list`. Possible options:

- client\_code
- articul
- name
- active
- default\_price
- default\_available
- default\_discount\_type
- default\_discount
- repricing\_min
- default\_currency

Additional information
----------------------

[](#additional-information)

Read more about our API [here](https://priceva.docs.apiary.io/#introduction).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance47

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

9

Last Release

2762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed7d701bcf29d27f7deb9aa24699227ebdc34dc54a06c7518f06d7dd2c7c04aa?d=identicon)[Priceva](/maintainers/Priceva)

---

Top Contributors

[![pavelsmetana](https://avatars.githubusercontent.com/u/98884877?v=4)](https://github.com/pavelsmetana "pavelsmetana (1 commits)")[![Sfairet](https://avatars.githubusercontent.com/u/21312929?v=4)](https://github.com/Sfairet "Sfairet (1 commits)")

---

Tags

phpapipriceva

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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