1. Go to this page and download the library: Download lasserafn/php-ordrestyring 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/ */
$ordrestyring->debtors()->where('id', [1,2,3,4])->get(); // Will get debtors with id 1, 2, 3 and/or 4
$ordrestyring = new LasseRafn\Ordrestyring\Ordrestyring('API-KEY');
$ordrestyring->cases()->get();
use LasseRafn\Ordrestyring\Ordrestyring;
try {
// try to get something from the api, but nothing is found.
}
catch( LasseRafn\Ordrestyring\Exceptions\RequestException $exception ) {
echo $exception->message; // could redirect back with the message.
}
`bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.