The library provides method for work with iikoAPI
iikoapilibrary/iikoapi is a Laravel package for the library provides method for work with iikoapi.
It currently has 0 GitHub stars and 10 downloads on Packagist (latest version 0.1.5).
Install it with composer require iikoapilibrary/iikoapi.
Discover more Laravel packages by iikoapilibrary
or browse all Laravel packages to compare alternatives.
Last updated
iikoAPI Library is a PHP client for interacting with the iiko API. It is designed to simplify the process of making API calls to iiko and handling the responses.
You can install the package via composer:
composer require iikoapilibrary/iikoapi
After installing the iikoAPI Library, publish its configuration file to your Laravel project:
php artisan vendor:publish --provider="IikoApiLibrary\Providers\iikoServiceProvider" --tag="iikoapi-config"
Also you need to publish resource files to your Laravel project
php artisan vendor:publish --provider="IikoApiLibrary\Providers\iikoServiceProvider" --tag="iikoapi-resources"
This will publish the iikoapi.php configuration file to your config directory. In this file, you can specify the API login credentials and other settings.
Here is a simple example of how to use the iikoAPI client:
$organization = iikoClientFacade::create()->GetOrganizationsInfo();
$menu = iikoClientFacade::create()->ExportMenu($organization['organizations'][0]['id']);
$arr = $menu->toArray(1);
echo dd($arr);
Make sure to check out the API documentation for a list of available methods.