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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

Requirements

Installation

Quick start (any PHP project)

All money values are in minimal currency units (e.g. dirams). price and quantity produce the line sum automatically (price * quantity), and receiptSum is 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

PHP Build Version
Package Version
Requires php Version ^8.2
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package texhub/virtual-pos-andoz contains the following files

Loading the files please wait ...