PHP code example of volldigital / laravel-navision
1. Go to this page and download the library: Download volldigital/laravel-navision 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/ */
$client = app(VOLLdigital\LaravelNavision\Client::class);
// file will be stored in /storage/app/temp/curl_uniqueid.temp
$data = $client->fetchCollection("Events", true);
$client = app(VOLLdigital\LaravelNavision\Client::class);
if ($client->ping() === false) {
throw new RunTimeException('No connection available');
}