Download the PHP package texhub/virtual-pos-andoz without Composer
On this page you can find all versions of the php package texhub/virtual-pos-andoz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texhub/virtual-pos-andoz
More information about texhub/virtual-pos-andoz
Files in texhub/virtual-pos-andoz
Package virtual-pos-andoz
Short Description Virtual POS / fiscal cash register (Andoz / ОФД) API SDK for any PHP framework with first-class Laravel support: device status, shifts, receipts & corrections, fiscal documents, X/FN/cash reports, cash in/out and universal counters.
License MIT
Homepage https://texhub.pro
Informations about the package virtual-pos-andoz
TexHub · Virtual POS (Andoz / ОФД)
English · Русский
A clean, framework-agnostic PHP SDK for the Virtual POS / fiscal cash register API (ОФД / Andoz, vkassa-api.ofd.tj) — device status, shifts, receipts & corrections, fiscal documents, X/FN/cash reports, cash in/out and universal counters — with first-class Laravel support.
Full method reference (every method, parameters & example responses): Русский
Features
- Receipts & corrections with a fluent builder (auto
receiptSum, auto VAT) - Shift lifecycle — status, open, close
- Fiscal documents — last, by FD number, by external id
- Reports — X-report, FN report, shift cash (инкассация), queue
- Cash for change — add / remove
- Universal counters — create, list, increase, decrease, reset, delete
- Typed enums (operation type, tax type, commodity, VAT, result codes)
- Fully unit-tested, no network needed (injectable transport)
- Laravel service provider, facade and publishable config
Requirements
- PHP
^8.2,ext-curl,ext-json - Laravel 11/12/13 (optional)
Installation
Quick start (any PHP project)
All money values are in minimal currency units (e.g. dirams).
priceandquantityproduce the linesumautomatically (price * quantity), andreceiptSumis the total of all lines.
Authentication
The token issued by your ОФД operator is sent in the Authorization header.
By default the raw token is sent; if your operator expects a scheme, set a prefix:
Receipts
VAT — by default the SDK extracts VAT-included tax per rate. To send exact
amounts yourself, call ->vat(VatCode::Standard, 1228) (disables auto VAT), or
->withoutAutoVat().
Corrections
Documents, reports, cash & counters
Reading responses
Every call returns a Response. get() reads (dot-path) inside the data
block; all() returns the full body, success() checks rc === SUCCESS.
Error handling
A result code other than SUCCESS throws an ApiException:
Laravel
Auto-discovered. Publish the config:
.env:
Use the facade or inject the client:
Testing
The SDK ships with an injectable Transport, so you can test without the network:
License
MIT © TexHub Pro — developed by Mahmudi Shodmehr.
All versions of virtual-pos-andoz with dependencies
ext-curl Version *
ext-json Version *