Download the PHP package vladchornyi/mono without Composer
On this page you can find all versions of the php package vladchornyi/mono. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mono
Monobank Acquiring PHP Client
PHP client for the Monobank Acquiring API: invoices, subscriptions, statements, merchant details, webhook signature verification, and structured error handling.
Features
- Invoices: create, status, cancel, invalidate, hold finalization, receipts, and fiscal checks.
- Subscriptions: create, status, list, payment history, cancel with refund, remove.
- Tokenized cards: wallet listing, payment by card token, card deletion.
- Statements, merchant details, submerchants, and split receivers.
- Verified webhook parsing with
X-Signsupport. - Typed webhook payload helpers for invoice and subscription events.
- Versioned webhook deduplication and stale-event protection via
modifiedDate. - Rotation-aware public-key verification with injectable shared caching.
- Replaceable HTTP layer for tests and framework integrations.
- Response-header capture and safe retry handling for idempotent requests.
- Structured exceptions and safe logging helpers.
Version 2.0 contains intentional breaking changes. Existing 1.x applications should follow the upgrade guide before changing the constraint.
Requirements
- PHP 8.0+
ext-jsonext-mbstringext-curlwhen using the defaultCurlHttpClient.ext-opensslwhen using built-in webhook verification.
Installation
Quick Start
The complete walk-through, including stale-event and duplicate handling, is in Getting Started.
Documentation
- Getting started: first payment
- Installation and client setup
- Invoices, one complete example per capability
- API coverage
- Webhooks and the transactional handler example in examples/Webhooks
- Subscriptions
- Statements and merchant details
- Errors and safe logging
- Upgrade notes
Testing From Source
The default test suite is self-contained and does not call Monobank. It
includes four release-gate suites, also runnable alone with
composer test:release:
tests/Contract: every SDK request is checked against the Monobank OpenAPI document stored intests/fixtures/monobank(method, path, documented fields, JSON lists, required fields, query parameters); responses built from the specification's examples must be readable by the SDK.tests/Migration: real 1.x call forms executed against 2.0, the evidence behindUPGRADING.md.tests/Regression: one reproduction per defect found during the 2.0 review.tests/Docs: every PHP block in the docs compiles, every documented client call exists, anddocs/api-coverage.mdlists every specification endpoint.
For an optional live smoke test, set MONO_KEY or MONO_ENV_FILE:
To verify live invoice and subscription creation with a test merchant key:
The live create smoke test uses a minimal amount and attempts cleanup after
creation. Set MONO_LIVE_CREATE_CLEANUP=false only when you intentionally want
to retain the created test resources.
License
MIT
All versions of mono with dependencies
ext-json Version *
ext-mbstring Version *