Download the PHP package texhub/moy-sklad without Composer
On this page you can find all versions of the php package texhub/moy-sklad. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texhub/moy-sklad
More information about texhub/moy-sklad
Files in texhub/moy-sklad
Package moy-sklad
Short Description Full-featured MoySklad (МойСклад) JSON API 1.2 SDK for any PHP framework with first-class Laravel & multi-tenant support: products, stock, images, counterparties, orders, reports and webhooks.
License MIT
Homepage https://texhub.pro
Informations about the package moy-sklad
TexHub · MoySklad
English · Русский
A full-featured, framework-agnostic PHP SDK for the MoySklad (МойСклад) JSON API 1.2 — products, stock, images, counterparties, orders, reports and webhooks — with first-class Laravel and multi-tenant support.
Reference: https://dev.moysklad.ru/doc/api/remap/1.2/
Features
- Products — full CRUD with name, code, article, description, prices, attributes
- Images — list, upload (file/base64), delete
- Stock —
report/stock/all, by store, short stock, assortment - Generic entity client — reach any entity (
counterparty,customerorder,demand, …) - Webhooks — manage subscriptions + parse incoming events (with
accountIdfor tenant routing) - Multi-tenant — one client per account via token;
forToken()switching - Query builder — pagination, filters, search, order,
expand - Token or login/password auth · gzip · typed responses · fully tested
Installation
Requirements: PHP ≥ 8.2 with curl, json.
Quick start
Get a token from login/password
Products, descriptions & images
Stock (количество) & assortment
Each stock row contains stock, reserve, inTransit, quantity, plus the linked product meta.
Any entity
Built-in helpers: products(), variants(), services(), bundles(), productFolders(), counterparties(), organizations(), stores(), customerOrders(), demands(), reports(), webhooks().
Webhooks
Subscribe (so MoySklad notifies your URL):
Receive (parse the incoming POST):
Multi-tenant / SaaS
Each customer connects their own MoySklad account. Store their token (or login/password → token) and build a per-tenant client:
Error handling
Laravel
Auto-discovered. Publish config:
.env:
Facade:
Exclude your webhook route from CSRF (
VerifyCsrfToken::$except).
Testing
Architecture
License
MIT © TexHub Pro — built by Mahmudi Shodmehr.
All versions of moy-sklad with dependencies
ext-curl Version *
ext-json Version *