Search by

wrdev / minimax-php-client

WrabbidDev

Framework-agnostic PHP client for the Minimax accounting API.

Package info

github.com/WrabbidDev/minimax-php-client

pkg:composer/wrdev/minimax-php-client

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.9.1 2026-11-27 08:36 UTC

This package is auto-updated.

Last update: 2026-11-27 08:38:26 UTC


README

A framework-agnostic PHP client for the Minimax accounting API.

The client authenticates with the OAuth2 password grant and exposes the order and issued-invoice flow. Those calls return model objects. Other Minimax endpoints remain available through the generic resource client.

Requirements

  • PHP 8.2 or later
  • ext-curl, ext-json, and ext-mbstring

Install

composer require wrdev/minimax-php-client

Usage

See USAGE.md for configuration, the order and invoice flow, Serbia fiscalization, and other resources.

Authentication and limits

Tokens are cached in memory until 60 seconds before their expiry. A 401 response from an API call clears the token and retries that API call once. Authentication calls themselves are never retried: Minimax may lock an API application after repeated invalid-password attempts.

The Minimax API documents a limit of 1,000 requests per connected organisation in a rolling 24-hour period and 20,000 requests per month. Design polling and batch jobs accordingly.

Official documentation

Testing

composer test
composer analyse
composer cs-check