PHPackages                             dmamontov/ms-restapi - 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. dmamontov/ms-restapi

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

dmamontov/ms-restapi
====================

PHPClient to work with through Moy Sklad Rest API.

1.1.2(10y ago)3202BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 18Pushed 10y ago2 watchersCompare

[ Source](https://github.com/dmamontov/ms-restapi)[ Packagist](https://packagist.org/packages/dmamontov/ms-restapi)[ Docs](http://www.slobel.ru/)[ RSS](/packages/dmamontov-ms-restapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/5d690d0faad93642688b3ecc5f0447941d98fa94346fbea1a1c0cb0ac37c2203/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6d732d726573746170692f762f737461626c652e737667)](https://packagist.org/packages/dmamontov/ms-restapi)[![License](https://camo.githubusercontent.com/e8f71adbc02f585ba2124c62ae7328d6fd82c47912ba15b72be430b8a2ea990b/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6d732d726573746170692f6c6963656e73652e737667)](https://packagist.org/packages/dmamontov/ms-restapi)[![Total Downloads](https://camo.githubusercontent.com/5659ed3e76d7b07a473d2ec6e6810dd5aac2d179e6918cb434fa12bd8993da10/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6d732d726573746170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/dmamontov/ms-restapi)

Moy Sklad API Client
====================

[](#moy-sklad-api-client)

This class can Manage accounts of Moy Sklad using its REST API.

It can obtain an authorization password for a given account, so it can send HTTP requests to the [Moy Sklad Rest API](http://wiki.moysklad.ru/wiki/REST-%D1%81%D0%B5%D1%80%D0%B2%D0%B8%D1%81_%D1%81%D0%B8%D0%BD%D1%85%D1%80%D0%BE%D0%BD%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85) in order to perform several types of operations.

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

[](#requirements)

- PHP version &gt;5.0
- curl

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

[](#installation)

1. Install [composer](https://getcomposer.org/download/)
2. Follow in the project folder:

```
composer require dmamontov/ms-restapi ~1.1.2
```

In config `composer.json` your project will be added to the library `dmamontov/ms-restapi`, who settled in the folder `vendor/`. In the absence of a config file or folder with vendors they will be created.

If before your project is not used `composer`, connect the startup file vendors. To do this, enter the code in the project:

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

Examples of use
---------------

[](#examples-of-use)

### Get unit of measurement.

[](#get-unit-of-measurement)

```
$ms = new MSRestApi('admin@xxxx.ru', 'xxxxxxxxxx');

$uuid = '7e4b5318-44df-11e5-7a07-673d0083fdac';
$uomGet = $ms->uomGet($uuid);
```

### Creating unit of measurement

[](#creating-unit-of-measurement)

```
$ms = new MSRestApi('admin@xxxx.ru', 'xxxxxxxxxx');

$headerXml = '';

$newUom = new SimpleXMLElement(
                  sprintf($headerXml, 'uom'),
                  LIBXML_NOENT | LIBXML_NOCDATA |
                  LIBXML_COMPACT | LIBXML_PARSEHUGE
          );

$newUom->addAttribute('favourite', 'false');
$newUom->addAttribute('name', 'example');
$newUom->addChild('code', '999');
$newUom->addChild('externalcode', '999');
$newUom->addChild('description', 'Example 999');

$uomCreate = $ms->uomCreate($newUom);
```

Available methods
-----------------

[](#available-methods)

### References

[](#references)

- `uomGet`
- `uomCreate`
- `uomDelete`
- `uomGetList`
- `uomUpdateList`
- `goodGet`
- `goodCreate`
- `goodDelete`
- `goodGetList`
- `goodUpdateList`
- `goodDeleteList`
- `goodFolderGet`
- `goodFolderCreate`
- `goodFolderDelete`
- `goodFolderGetList`
- `goodFolderUpdateList`
- `goodFolderDeleteList`
- `serviceGet`
- `serviceCreate`
- `serviceDelete`
- `serviceGetList`
- `serviceUpdateList`
- `serviceDeleteList`
- `warehouseGet`
- `warehouseCreate`
- `warehouseDelete`
- `warehouseGetList`
- `warehouseUpdateList`
- `warehouseDeleteList`
- `companyGet`
- `companyCreate`
- `companyDelete`
- `companyGetList`
- `companyUpdateList`
- `companyDeleteList`
- `myCompanyGet`
- `myCompanyCreate`
- `myCompanyDelete`
- `myCompanyGetList`
- `myCompanyUpdateList`
- `myCompanyDeleteList`
- `personGet`
- `personCreate`
- `personDelete`
- `personGetList`
- `personUpdateList`
- `personDeleteList`
- `employeeGet`
- `employeeCreate`
- `employeeDelete`
- `employeeGetList`
- `employeeUpdateList`
- `employeeDeleteList`
- `countryGet`
- `countryCreate`
- `countryDelete`
- `countryGetList`
- `countryUpdateList`
- `countryDeleteList`
- `consignmentGet`
- `consignmentCreate`
- `consignmentDelete`
- `consignmentGetList`
- `consignmentUpdateList`
- `consignmentDeleteList`
- `currencyGet`
- `currencyCreate`
- `currencyDelete`
- `currencyGetList`
- `currencyUpdateList`
- `currencyDeleteList`
- `processingPlanFolderGet`
- `processingPlanFolderCreate`
- `processingPlanFolderDelete`
- `processingPlanFolderGetList`
- `processingPlanFolderUpdateList`
- `processingPlanFolderDeleteList`
- `processingPlanGet`
- `processingPlanCreate`
- `processingPlanDelete`
- `processingPlanGetList`
- `processingPlanUpdateList`
- `processingPlanDeleteList`
- `contractGet`
- `contractCreate`
- `contractDelete`
- `contractGetList`
- `contractUpdateList`
- `contractDeleteList`
- `projectGet`
- `projectCreate`
- `projectDelete`
- `projectGetList`
- `projectUpdateList`
- `projectDeleteList`
- `gtdGet`
- `gtdCreate`
- `gtdDelete`
- `gtdGetList`
- `gtdUpdateList`
- `gtdDeleteList`
- `thingGet`
- `thingCreate`
- `thingDelete`
- `thingGetList`
- `thingUpdateList`
- `thingDeleteList`
- `lossReasonGet`
- `lossReasonCreate`
- `lossReasonDelete`
- `lossReasonGetList`
- `lossReasonUpdateList`
- `lossReasonDeleteList`
- `enterReasonGet`
- `enterReasonCreate`
- `enterReasonDelete`
- `enterReasonGetList`
- `enterReasonUpdateList`
- `enterReasonDeleteList`
- `customEntityGet`
- `customEntityCreate`
- `customEntityDelete`
- `customEntityGetList`
- `customEntityUpdateList`
- `customEntityDeleteList`
- `workflowGet`
- `workflowCreate`
- `workflowDelete`
- `workflowGetList`
- `workflowUpdateList`

### Documentation

[](#documentation)

- `supplyGet`
- `supplyCreate`
- `supplyDelete`
- `supplyGetList`
- `supplyUpdateList`
- `supplyDeleteList`
- `demandGet`
- `demandCreate`
- `demandDelete`
- `demandGetList`
- `demandUpdateList`
- `demandDeleteList`
- `lossGet`
- `lossCreate`
- `lossDelete`
- `lossGetList`
- `lossUpdateList`
- `lossDeleteList`
- `enterGet`
- `enterCreate`
- `enterDelete`
- `enterGetList`
- `enterUpdateList`
- `enterDeleteList`
- `salesReturnGet`
- `salesReturnCreate`
- `salesReturnDelete`
- `salesReturnGetList`
- `salesReturnUpdateList`
- `salesReturnDeleteList`
- `purchaseReturnGet`
- `purchaseReturnCreate`
- `purchaseReturnDelete`
- `purchaseReturnGetList`
- `purchaseReturnUpdateList`
- `purchaseReturnDeleteList`
- `customerOrderGet`
- `customerOrderCreate`
- `customerOrderDelete`
- `customerOrderGetList`
- `customerOrderUpdateList`
- `customerOrderDeleteList`
- `purchaseOrderGet`
- `purchaseOrderCreate`
- `purchaseOrderDelete`
- `purchaseOrderGetList`
- `purchaseOrderUpdateList`
- `purchaseOrderDeleteList`
- `internalOrderGet`
- `internalOrderCreate`
- `internalOrderDelete`
- `internalOrderGetList`
- `internalOrderUpdateList`
- `internalOrderDeleteList`
- `processingOrderGet`
- `processingOrderCreate`
- `processingOrderDelete`
- `processingOrderGetList`
- `processingOrderUpdateList`
- `processingOrderDeleteList`
- `processingGet`
- `processingCreate`
- `processingDelete`
- `processingGetList`
- `processingUpdateList`
- `processingDeleteList`
- `moveGet`
- `moveCreate`
- `moveDelete`
- `moveGetList`
- `moveUpdateList`
- `moveDeleteList`
- `inventoryGet`
- `inventoryCreate`
- `inventoryDelete`
- `inventoryGetList`
- `inventoryUpdateList`
- `inventoryDeleteList`
- `cashInGet`
- `cashInCreate`
- `cashInDelete`
- `cashInGetList`
- `cashInUpdateList`
- `cashInDeleteList`
- `cashOutGet`
- `cashOutCreate`
- `cashOutDelete`
- `cashOutGetList`
- `cashOutUpdateList`
- `cashOutDeleteList`
- `paymentInGet`
- `paymentInCreate`
- `paymentInDelete`
- `paymentInGetList`
- `paymentInUpdateList`
- `paymentInDeleteList`
- `paymentOutGet`
- `paymentOutCreate`
- `paymentOutDelete`
- `paymentOutGetList`
- `paymentOutUpdateList`
- `paymentOutDeleteList`
- `retailDemandGet`
- `retailDemandCreate`
- `retailDemandDelete`
- `retailDemandGetList`
- `retailDemandUpdateList`
- `retailDemandDeleteList`
- `retailSalesReturnGet`
- `retailSalesReturnCreate`
- `retailSalesReturnDelete`
- `retailSalesReturnGetList`
- `retailSalesReturnUpdateList`
- `retailSalesReturnDeleteList`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~11 days

Recently: every ~2 days

Total

7

Last Release

3856d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5955726?v=4)[Dmitry Mamontov](/maintainers/dmamontov)[@dmamontov](https://github.com/dmamontov)

---

Top Contributors

[![dmamontov](https://avatars.githubusercontent.com/u/5955726?v=4)](https://github.com/dmamontov "dmamontov (18 commits)")

---

Tags

apiclientrestcrmmsmoy sklad

### Embed Badge

![Health badge](/badges/dmamontov-ms-restapi/health.svg)

```
[![Health](https://phpackages.com/badges/dmamontov-ms-restapi/health.svg)](https://phpackages.com/packages/dmamontov-ms-restapi)
```

###  Alternatives

[cristianpontes/zoho-crm-client-php

Provides a clean readable PHP API to the Zoho Rest API

5554.0k](/packages/cristianpontes-zoho-crm-client-php)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69114.3k](/packages/serpapi-google-search-results-php)[artesaos/laravel-linkedin

Linkedin API integration for Laravel and Lumen 5

5666.5k](/packages/artesaos-laravel-linkedin)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[romanpitak/dotmailer-api-v2-client

Client library for the dotMailer v2 (REST) API.

21101.0k2](/packages/romanpitak-dotmailer-api-v2-client)[jsor/hal-client

A lightweight client for consuming and manipulating Hypertext Application Language (HAL) resources.

2425.9k1](/packages/jsor-hal-client)

PHPackages © 2026

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