Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

zmbakh/nurkassa-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nurkassa SDK for PHP v1

Latest Stable Version

Installation

The Nurkassa PHP SDK can be installed with Composer. Run this command:

composer require zmbakh/nurkassa-php-sdk

Please be aware, that SDK only works with cURL or Guzzle 6.x out of the box.

Usage

Note: The SDK requires PHP 7.2 or greater.

Simple GET example of a list of the POSes.

require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$nurkassa = new Nurkassa\Nurkassa();
$nurkassa->setAccessToken('h2rOjGoWhofLZHLO9K0xW3h8Pyfml7RG7ikLXSemHNhmaSgBrgDXNu5NMNs6'); //Example token.

$pos = new \Nurkassa\Models\ProgrammingMode\PosModel();
$request = $pos->index();

$response = $nurkassa->handleRequest($request);

The $response variable in the expample above contains headers, body and status code of the response.

The Models return a NurkassaRequest instance and were made to make easier request building. See here to introduce with all the Models.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages