PHP code example of maciejlewandowskii / ifirma-bundle
1. Go to this page and download the library: Download maciejlewandowskii/ifirma-bundle 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/ */
maciejlewandowskii / ifirma-bundle example snippets
use maciejlewandowskii\iFirmaApi\iFirmaApi;
class YourService
{
public function __construct(private readonly iFirmaApi $iFirma) {}
public function createInvoice(): void
{
$invoice = new InvoiceRequest(/* ... */);
$response = $this->iFirma->invoiceService->create($invoice);
}
}
use maciejlewandowskii\iFirmaApi\Synchronization\HasIFirmaIntegration;
class Invoice implements HasIFirmaIntegration
{
// implement