softc / evotor-mobile-cashier
Provides access to Evotor Mobile Cashier API
v1.0.0
2024-05-22 07:32 UTC
Requires
- php: >=7.4
- mpetrovich/dash: ^3.1
- php-http/discovery: ^1.0
- php-http/httplug: ^2.0
- php-http/message-factory: ^1.0
- psr/http-client-implementation: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^2.2
- php-http/message: ^1.0
- php-http/mock-client: ^1.5
- phpstan/phpstan: ^1.5
- phpunit/phpunit: ^9.5
README
Evotor's MobileCashier REST API Client.
Installation
Recommended method: Composer:
$ composer require softc/evotor-mobile-cashier
Usage
Initialize and create receipt:
<?php require 'vendor/autoload.php'; use SoftC\Evotor\MobileCashier\Client; use SoftC\Evotor\MobileCashier\Data\Receipt; $client = new Client(<UserId>); $positions = []; // instances of SoftC\Evotor\MobileCashier\Data\Position $receipt = new Receipt('4e34ac31-ae28-4f52-be00-e6af9383343a', positions); $response = $client->create($receipt); var_dump($response);
License
See LICENSE file.