mufin / idoklad-symfony-bundle
iDoklad api symfony bundle for v3
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.3|^8.0
- ext-json: *
- aboutcoders/enum-serializer-bundle: ^0.4.0
- jms/serializer: ^1.9|^3.9
- marc-mabe/php-enum: ^4.4
- symfony/framework-bundle: 5.2.*
- symfony/yaml: 5.2.*
README
Symfony Bundle
A symfony bundle for IDoklad api v3
Installation
Step 1: Download MufinIDokladBundle using composer
Require the mufin/idoklad-symfony-bundle
with composer Composer.
$ composer require mufin/idoklad-symfony-bundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Mufin\IDokladBundle\MufinIDokladBundle(), // ... ); }
Step 3: Configure the MufinIDokladBundle
Below is a minimal example of the configuration necessary to use the
MufinIDokladBundle
in your application:
# .env ###> mufin/idoklad-symfony-bundle ### IDOKLAD_CLIENT_ID="client_id_from_idoklad_website" IDOKLAD_CLIENT_SECRET="client_secret_from_idoklad_website" ###< mufin/idoklad-symfony-bundle ###
Step 4: Usage of MufinIDokladBundle
New Invoice
create contact for invoice
$createContactRequest = new ContactRequest(); $response = $IDokladClient->sendRequest($createContactRequest);
create invoice
$createInvoiceRequest = new NewInvoiceRequestModel(); $response = $IDokladClient->sendRequest($createInvoiceRequest);
invoice detail
$issuedInvoice = new IssuedInvoiceRequestModel('invoice_id', ReportLanguage::SK(), false); $response = $IDokladClient->sendRequest($issuedInvoice);