Download the PHP package multidialogo/api-php-sdk without Composer
On this page you can find all versions of the php package multidialogo/api-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download multidialogo/api-php-sdk
More information about multidialogo/api-php-sdk
Files in multidialogo/api-php-sdk
Package api-php-sdk
Short Description php client for multidialogo services
License
Informations about the package api-php-sdk
Multidialogo api php sdk
A set of classes to manage the interaction with Multidialogo API.
Quick Start
Installation
Use example
It is possible to configure the client with a filesystem-based credentials store.
This is achieved with this helper:
So the full example would be:
CLIENT_PROVIDED_FILESYSTEM_PATH is a string specifying a folder, that will be used by the client to store the credentials. The folder must be writable. It is totally optional, and it allows to omit user password until it is mandatory (ie until the main or refresh token expires).
It is possibile to pass a token directly to the client.
This use case is suitable for situation where the login is managed by a frontend, that is handling the token refresh procedure and passing the token to a backend proxy.
This is done via the withBearerToken
helper method.
Example:
Local development
How to build required docker images
To build the main image (php 7.4)
To build the php 8.2 version image (note: it does not contain composer).
Keep in mind that the php82 version is intended to be used only to run unit tests, that's why composer is not included.
Install/update/manage vendors
Run unit tests
Run tests under php 7.4:
Run tests under php 8.2:
Semantic versioning
Project is following semantic versioning. Please use properly git tags before any release in master.
Example: