1. Go to this page and download the library: Download lsr/abra-flexi 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/ */
lsr / abra-flexi example snippets
sr\AbraFlexi\AbraFlexiConfiguration;
use Lsr\AbraFlexi\AbraFlexiInvoiceGateway;
use Lsr\AbraFlexi\AbraFlexiPriceListGateway;
use Psr\Log\NullLogger;
$configuration = new AbraFlexiConfiguration(
enabled: true,
apiUrl: (string) getenv('ABRA_API_URL'),
company: (string) getenv('ABRA_COMPANY'),
username: (string) getenv('ABRA_USERNAME'),
password: (string) getenv('ABRA_PASSWORD'),
currencyCode: 'CZK',
);
$logger = new NullLogger();
$invoices = new AbraFlexiInvoiceGateway($configuration, $logger);
$priceList = new AbraFlexiPriceListGateway($configuration, $logger);