wrdev / minimax-php-client
Framework-agnostic PHP client for the Minimax accounting API.
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- psr/log: ^2.0 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^11.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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, andext-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