PHP code example of iikoapilibrary / iikoapi

1. Go to this page and download the library: Download iikoapilibrary/iikoapi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

iikoapilibrary / iikoapi example snippets

bash
php artisan vendor:publish --provider="IikoApiLibrary\Providers\iikoServiceProvider" --tag="iikoapi-config"
bash
php artisan vendor:publish --provider="IikoApiLibrary\Providers\iikoServiceProvider" --tag="iikoapi-resources"
bash
$organization = iikoClientFacade::create()->GetOrganizationsInfo();

$menu = iikoClientFacade::create()->ExportMenu($organization['organizations'][0]['id']);

$arr = $menu->toArray(1);

echo dd($arr);