Download the PHP package lexonouri/serwisant-api without Composer
On this page you can find all versions of the php package lexonouri/serwisant-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lexonouri/serwisant-api
More information about lexonouri/serwisant-api
Files in lexonouri/serwisant-api
Package serwisant-api
Short Description API client for https://serwisant.online service
License Apache-2.0
Homepage https://github.com/Lexonouri/serwisant-api-php-sdk
Informations about the package serwisant-api
Serwisant Online PHP SDK
Installation:
To install this package in composer environment use:
Requirements:
- PHP 7.2 or higher
- ext-mbstring
- ext-curl
Word about versioning
Versioning of SDK is very important. It looks like 3.<major>.<minor>, eg. 3.0.1.
When you're including SDK into your composer config, it's strongly recommended to set major version as fixed, eg:
It's important, because of typed queries and mutations. If schema will change, arguments passed to queries and mutations will change as well. It can be new required arguments or even order of arguments can change. In that case SDK will e released with incremented major version. If you'll decide to upgrade, it can break your application.
You have being warned.
There is a single exception to that. internal schema is not for public consumption. Breaking changes will be
excluded from above rules.
Usage:
First of all, prepare an instance of API for later use, it should be shared across whole application
Basic example with inline query
Example with batched query - use batches as more, as you can for performance reasons. Batching queries reduce HTTP traffic.