PHP code example of russianprotein / iikotransport
1. Go to this page and download the library: Download russianprotein/iikotransport 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/ */
russianprotein / iikotransport example snippets
composer san vendor:publish
namespace App\Http\Controllers;
use RussianProtein\iikoTransport\iikoTransport;
class Controller extends BaseController
{
public function index()
{
//Call class iikoTransport (If we do not pass anything to the class, then the default parameter is used from env IIKO_API_LOGIN)
$data = new iikoTransport('set iiko login');
//get Organization List
$organisations = $data->getOrganizations(null, true, true);
}
}