PHPackages                             locastic/msan-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. locastic/msan-api

ActiveLibrary

locastic/msan-api
=================

Library for integration with M SAN partner Api services

1.2(10y ago)0133MITPHPPHP ^5.5.9|^7.0

Since Feb 5Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Locastic/MsanApi)[ Packagist](https://packagist.org/packages/locastic/msan-api)[ Docs](http://www.locastic.com)[ RSS](/packages/locastic-msan-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

MsanApi
=======

[](#msanapi)

PHP Library for M SAN partner API

Limits:

```
Data                                                                            Method                                   Permission                  Limit per period
----                                                                            ------                                   ----------                  ----------------

Katalog artikala -------------------------------------------------------------- GetProductsList                           Required                    5 times per day

Cjenik artikala --------------------------------------------------------------  GetProductsPriceList                      Required                    5 times per day

Dostupnost artikala ----------------------------------------------------------- GetProductsAvailability                   Required                    4 times per hour

Tehničke specifikacije artikala ----------------------------------------------- GetProductsSpecification                  Required                    5 times per day

Zaglavlja dokumenata – jedan dokument ----------------------------------------- GetDocumentsHeaders                       Required                   20 times per hour

Stavke dokumenata – jedan dokument -------------------------------------------- GetDocumentsItems                         Required                   20 times per hour

Zaglavlja dokumenata – više dokumenata po rasponu (broj ili period). ---------- GetDocumentsHeaders                       Required                   10 times per hour
Max. 100 dok. koji zadovoljavaju.

Stavke dokumenata – više dokumenata po rasponu (broj ili period) -------------- GetDocumentsItems                         Required                   10 times per hour
Max. 100 dok. koji zadovoljavaju.

```

Available parameters for http requests:

```
PRODUCT LIST:

    1) Products by code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsList.aspx?ProductCode=0220448

    2) Products by type

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsList.aspx?ProductType=Procesor

    3) Entire list

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsList.aspx

PRODUCT CATEGORIES

    1) Categories list -- MANDATORY PARAMETER -- CategoryTypeId

        https://b2b.msan.hr/B2BService/HTTP/Products/GetCategoriesList.aspx

    2) Category by type id(1 for basic categorisation)

        https://b2b.msan.hr/B2BService/HTTP/Products/GetCategoriesList?CategoryTypeId=1

PRODUCT CATEGORISATION

    1) Products category -- MANDATORY PARAMETER -- CategoryTypeId

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsCategory.aspx

    2) Categories by category type id

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsCategory.aspx?CategoryTypeId=1

    3) Category by product code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsCategory.aspx?ProductCode=12213

PRODUCT BARCODES

    1) Products barcodes

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsBarcodes.aspx

    2) Product barcode by product code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsBarcodes?ProductCode=123234

PRODUCT PRICE LIST:

    1) By code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsPriceList.aspx?ProductCode=0220448

    2) By type and/or promotion

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsPriceList.aspx?ProductType=Procesor&OnPromotion=true

    3) By brand

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsPriceList.aspx?Brand=Asustek

    4) Entire product price list

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsPriceList.aspx

PRODUCT AVAILABILITY

    1) By code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsAvailability.aspx?ProductCode=0220448

    2) Entire product availability list

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsAvailability.aspx

PRODUCT SPECIFICATION

    1) By code

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsSpecification.aspx?ProductCode=0220448

    2) By type

        https://b2b.msan.hr/B2BService/HTTP/Products/GetProductsSpecification.aspx?ProductType=Procesor

DOCUMENTS HEADERS

    1) List

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsHeaders.aspx

    2) By date(receipt)

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsHeaders.aspx?DocumentDateFrom=01.01.2008&DocumentDateTo=31.01.2008&DocumentType=RAC

    3) By document number(from-to)

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsHeaders.aspx?DocumentNoFrom=1&DocumentNoTo=1000&DocumentType=PON

    4) By number and date

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsHeaders.aspx?DocumentNoFrom=1&DocumentNoTo=1000&DocumentDateFrom=01.01.2008&DocumentDateTo=30.06.2008&DocumentType=OTP

    5) By document type(PON = ponuda, OTP = otpremnica, RAC = račun)

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsHeaders.aspx?DocumentNoFrom=1&DocumentNoTo=1000&DocumentType=PON

DOCUMENTS ITEMS

    1) List items

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsItems.aspx

    2) Items by date and/or type

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsItems.aspx?DocumentDateFrom=01.01.2008&DocumentDateTo=31.01.2008&DocumentType=RAC

    3) Items by from number to number

        https://b2b.msan.hr/B2BService/HTTP/Document/GetDocumentsItems.aspx?DocumentNoFrom=1&DocumentNoTo=1000&DocumentDateFrom=01.01.2008&DocumentDateTo=30.06.2008&DocumentType=OTP

```

Usage example
-------------

[](#usage-example)

```
$test = new ProductHandler(
    new CurlSettings(array(
       (string)CURLOPT_VERBOSE => 1,
       (string)CURLOPT_SSL_VERIFYPEER => 1,
       (string)CURLOPT_CAINFO => 'certs/ca.pem',
       (string)CURLOPT_SSLCERT => 'certs/client.pem',
       (string)CURLOPT_SSLKEY => 'certs/key.pem',
       (string)CURLOPT_SSLKEYPASSWD => '1234',
       (string)CURLOPT_TIMEOUT => 300
    )),
    new ApiSettings(),
    new XmlReader()
);

$productData = $test->getProductsList();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~34 days

Total

3

Last Release

3683d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.2

1.1PHP ^5.5.9|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/13758a6abd53618188475ebd3bab831a8669a3ebe7f9880a12a2ec1ba80b9643?d=identicon)[antonioperic](/maintainers/antonioperic)

---

Top Contributors

[![antonioperic](https://avatars.githubusercontent.com/u/2453151?v=4)](https://github.com/antonioperic "antonioperic (13 commits)")[![mcbuckets](https://avatars.githubusercontent.com/u/4672761?v=4)](https://github.com/mcbuckets "mcbuckets (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/locastic-msan-api/health.svg)

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

###  Alternatives

[oro/platform

Business Application Platform (BAP)

644134.8k84](/packages/oro-platform)[ezsystems/ezpublish-kernel

Kernel used by ezsystems/ezplatform and derivatives. Provides the Content Repository, its APIs, and the application's Symfony framework integration.

163579.5k141](/packages/ezsystems-ezpublish-kernel)[mettle/sendportal-core

Sendportal core functionality.

30033.9k1](/packages/mettle-sendportal-core)[gorkalaucirica/hipchat-v2-api-client

Hipchat v2 API client

80223.4k6](/packages/gorkalaucirica-hipchat-v2-api-client)[tamara-solution/php-sdk

Tamara PHP Client Library

10259.4k1](/packages/tamara-solution-php-sdk)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)

PHPackages © 2026

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