Download the PHP package malpka32/inpost-buy-sdk without Composer

On this page you can find all versions of the php package malpka32/inpost-buy-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 inpost-buy-sdk

InPost Buy SDK (inpsa)

PHP client for the InPost Buy API (inpsa) — sell your products through InPost's marketplace. Categories, offers, orders — all wrapped in a clean, type-safe interface.

CI PHP PHPStan Code style: PSR-12 Packagist Version Maintained


What is InPost Buy?

InPost Buy (inpsa) lets merchants integrate their product catalog and orders with InPost's platform. You publish offers, receive orders, and update their status — all via REST API. This SDK handles authentication, serialization, and mapping so you focus on business logic.

Features


Requirements


Installation


Quick Start


Usage

Language (Accept-Language)

API returns localized content (category names, error messages etc.). Set language via Language enum:

Supported values: Language::Polish (pl), Language::English (en).

Categories

Categories are returned as a tree (CategoryTreeCollection — each node has id, name, parentId, children).

You can iterate the tree recursively:

Creating an Offer

An offer is built from nested DTOs: ProductDto, StockDto, PriceDto. Optionally add attributes (e.g. color, size) and dimensions.

Batch Offers

Create multiple offers in one request:

Listing and Filtering Offers

OAuth2 PKCE (merchant flow)

For integrations where merchants authorize via OAuth2 (e.g. PrestaShop modules), use PKCE flow:

Orders


Error Handling

The SDK throws specific exceptions for HTTP errors:

Exception HTTP
BadRequestException 400
UnauthorizedException 401
ForbiddenException 403
NotFoundException 404
UnprocessableEntityException 422
TooManyRequestsException 429
ServerException 5xx

All extend malpka32\InPostBuySdk\Exception\ApiException and provide:


Testing & quality

With Docker:

CI runs on push/PR (PHP 8.1–8.3): code style (PSR-12), PHPStan, tests with coverage. See Actions.


Documentation

Official InPost Buy (inpsa) API docs: inpsa-api-portal.inpost-group.com


Support the project

This project is actively maintained: we keep it in sync with InPost API changes and welcome issues and pull requests on GitHub.

If this library helps you, consider buying me a coffee — it allows me to maintain and update the library alongside InPost API changes.

buycoffee.to/malpka32


License

MIT


All versions of inpost-buy-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ramsey/collection Version ^2.0
symfony/http-client-contracts Version ^2.5 || ^3.0
symfony/mime Version ^6.4 || ^7.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 malpka32/inpost-buy-sdk contains the following files

Loading the files please wait ...