Download the PHP package natsu007/ntak-php without Composer

On this page you can find all versions of the php package natsu007/ntak-php. 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 ntak-php

NTAK RMS PHP API / SDK (FOR PHP 7.1)

This is a fork from https://github.com/kiralyta/ntak-php repostitory, so I can use API in php 7.1. I hope it helps others who cannot use the latest version of php due to other dependencies. Remdme.md has been partially rewritten to comply with php 7.1. I left the other parts in their original form.

Update: I have created a development branch into which I am constantly synchronizing the latest updates from "kiralyta / ntak-php". I will rewrite the updated code if necessary so that it runs in php 7.1. Unit tests are performed on every update. Each update gets a tag.

Welcome to my little package, that helps you make NTAK RMS requests like a boss.

Table of Contents:

Installation

Usage

Instances

Create an API Client Instance

Your file is basically a concatenated file of your and files.

It is recommended to have a singleton instance during one request cycle. This means, you can create multiple requests with a single instance.

You can get the last request, response and respone time (in milliseconds) from the client.

Create an Order Item Instance

  • NTAKCategory
  • NTAKSubcategory
  • NTAKVat
  • NTAKAmount

Create a Payment Instance

  • NTAKPaymentType

Create an Order Instance

When you are updating / destroying an order, you need to provide (generate) a new orderId with each requests.

In these cases, the ntakOrderId is always the last provided orderId.

  • NTAKOrderType
  • NTAKOrderItem
  • NTAKPayment

Messages (Requests)

Store, Update, Destroy Order (Rendelésösszesítő)

Returns the NTAK process ID string.

  • NTAKOrder

Close Day (Napzárás)

Returns the NTAK process ID string.

  • NTAKDayType

Verify (Ellenőrzés)

Returns an instance

If you encounter an unsuccessful message, you should further examine NTAKVerifyStatus. It's recommended to wait at least 60 seconds before the first verification attempt of a processs ID.

Enums

Namespace of the enums:

You can use the static method on any of the enums, in order to get the available values.

NTAKAmount

name value string
DARAB darab
LITER liter
KILOGRAMM kilogramm
EGYSEG egyseg

NTAKCategory

name value string
ETEL Étel
ALKMENTESITAL_HELYBEN Helyben készített alkoholmentes ital
ALKMENTESITAL_NEM_HELYBEN Nem helyben készített alkoholmentes ital
ALKOHOLOSITAL Alkoholos Ital
EGYEB Egyéb

NTAKSubcategory

name value string
REGGELI reggeli
SZENDVICS szendvics
ELOETEL előétel
LEVES leves
FOETEL főétel
KORET köret
SAVANYUSAG_SALATA savanyúság/saláta
KOSTOLO kóstolóétel, kóstolófalat
PEKSUTEMENY péksütemény, pékáru
DESSZERT desszert
SNACK snack
FOETEL_KORETTEL főétel körettel
ETELCSOMAG ételcsomag
EGYEB egyéb
VIZ víz
LIMONADE_SZORP_FACSART limonádé / szörp / frissen facsart ital
ALKOHOLMENTES_KOKTEL alkoholmentes koktél, alkoholmentes kevert ital
TEA_FORROCSOKOLADE tea, forrócsoki és egyéb tejalapú italok
ITALCSOMAG italcsomag
KAVE kávé
ROSTOS_UDITO rostos üdítő
SZENSAVAS_UDITO szénsavas üdítő
SZENSAVMENTES_UDITO szénsavmentes üdítő
KOKTEL koktél, kevert ital
LIKOR likőr
PARLAT párlat
SOR sör
BOR bor
PEZSGO pezsgő
SZERVIZDIJ szervizdíj
BORRAVALO borravaló
KISZALLITASI_DIJ kiszállítási díj
NEM_VENDEGLATAS nem vendéglátás
KORNYEZETBARAT_CSOMAGOLAS környezetbarát csomagolás
MUANYAG_CSOMAGOLAS műanyag csomagolás
KEDVEZMENY kedvezmény

NTAKDayType

name value string
ADOTT_NAPON_ZARVA Adott napon zárva
FORGALOM_NELKULI_NAP Forgalom nélküli nap
NORMAL_NAP Normál nap

NTAKOrderType

name value string
NORMAL Normál
SZTORNO Storno
HELYESBITO Helyesbítő

NTAKPaymentType

name value string
KESZPENZHUF Készpénz huf
KESZPENZEUR Készpénz eur
SZEPKARTYA Szépkártya
BANKKARTYA Bankkártya
ATUTALAS Átutalás
EGYEB Egyéb
VOUCHER Voucher
SZOBAHITEL Szobahitel
KEREKITES Kerekítés

NTAKVat

name value string
A_5 5%
B_18 18%
C_27 27%
D_AJT Ajt
E_0 0%

NTAKVerifyStatus

name value string
BEFOGADVA BEFOGADVA
TELJESEN_HIBAS TELJESEN_HIBAS
RESZBEN_SIKERES RESZBEN_SIKERES
TELJESEN_SIKERES TELJESEN_SIKERES
UJRA_KULDENDO UJRA_KULDENDO

Contribution

Run Tests

Put your and files in directory, then run:


All versions of ntak-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
guzzlehttp/guzzle Version *
nesbot/carbon Version ^2.66
gamegos/jws Version ^1.0
myclabs/php-enum Version ^1.7.7
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 natsu007/ntak-php contains the following files

Loading the files please wait ....