PHP code example of baebeca / lexware-php-api
1. Go to this page and download the library: Download baebeca/lexware-php-api 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/ */
baebeca / lexware-php-api example snippets
Baebeca\LexwareApi;
use \Baebeca\LexwareException;
$lexware = new LexwareApi([
'api_key' => 'my-api-key'
]);
// catch errors
try {
$invoices = $lexware->get_last_invoices(-5);
}
catch (LexwareException $e) {
var_dump($e->getMessage());
print_r($e->getError());
}
composer json
{
"beca/lexware-php-api": "~2.0",
}
}