Download the PHP package makstech/montonio-php-sdk without Composer

On this page you can find all versions of the php package makstech/montonio-php-sdk. 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 montonio-php-sdk

Montonio PHP SDK

Latest Version Total Downloads Codecov

PHP SDK for the Montonio Stargate API and Shipping V2 API. Wraps both APIs with fluent struct builders and JWT-authenticated requests.

Features

API Coverage

Client Methods API Docs
Orders createOrder, getOrder Orders guide
Payment Links createPaymentLink, getPaymentLink Payment links guide
Payment Intents createDraft Embedded cards guide
Refunds createRefund Refunds guide
Sessions createSession Embedded cards guide
Payouts getPayouts, exportPayout, getBalances Payouts guide
Stores getPaymentMethods Payment methods guide
Shipping / Carriers getCarriers Shipping API reference
Shipping / Methods getShippingMethods, getPickupPoints, getCourierServices, filterByParcels, getRates Shipping methods guide
Shipping / Shipments createShipment, updateShipment, getShipment Shipments guide
Shipping / Labels createLabelFile, getLabelFile Labels guide
Shipping / Webhooks createWebhook, listWebhooks, deleteWebhook Webhooks guide

Supported payment methods: bank payments, card payments (Apple Pay, Google Pay), BLIK, Buy Now Pay Later, and Hire Purchase.

Requirements

Using PHP 8.0 or 8.1? v1 (1.x branch) is actively maintained with full API coverage (Payments + Shipping):

Upgrading from v1? See the upgrade guide — most users need no code changes.

Installation

Getting Started

Get your API keys from the Montonio Partner System (Stores → your store → API keys).

All sub-clients are accessed via factory methods on the main client (e.g. $client->orders(), $client->refunds()).

Custom HTTP Client (PSR-18)

By default, the SDK uses cURL for HTTP requests. You can optionally provide your own PSR-18 HTTP client:

This is useful for testing (inject a mock client) or when your framework already provides an HTTP client.

Orders

Create a payment order and redirect the customer to the payment URL.

Structs can be built fluently or from arrays — both approaches can be mixed:

Retrieve an order:

See the orders guide for all available fields and response details.

Payment Methods

Fetch available payment methods for your store:

Payment Links

Create shareable payment links without building a full checkout:

Retrieve a payment link:

Refunds

Issue a full or partial refund for a paid order:

Webhooks

Montonio sends webhook notifications to your notificationUrl when order or refund statuses change. Use decodeToken() to verify the JWT signature and decode the payload:

See the webhooks guide for full payload details and retry policy.

Embedded Payments

Embedded Card Payments

For embedding card payment fields directly in your checkout, create a session and pass it to the MontonioCheckout JS SDK:

Embedded BLIK

For embedded BLIK payments, pass the customer's 6-digit BLIK code when creating an order:

See the embedded BLIK guide for the full flow.

Payouts

Retrieve payout reports and balances:

Shipping

All shipping sub-clients are accessed via $client->shipping():

Carriers

Shipping Methods

Shipments

Label Files

Shipping Webhooks

See the Shipping API reference for all available fields and response details.

License

This library is made available under the MIT License (MIT). Please see License File for more information.


All versions of montonio-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-curl Version *
firebase/php-jwt Version ^6.0 || ^7.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
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 makstech/montonio-php-sdk contains the following files

Loading the files please wait ...