Download the PHP package kenod/isdoc-exporter without Composer
On this page you can find all versions of the php package kenod/isdoc-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package isdoc-exporter
ISDOC Exporter
PHP library for generating electronic invoices in the ISDOC format (version 6.0.2) -- the Czech national standard for electronic invoicing.
Interactive Demo | Packagist | Dokumentace v cestine
Features
- ISDOC 6.0.2 compliant XML output
- All document types: invoice, credit note, debit note, proforma, advance invoice, simplified invoice
- VAT payer and non-VAT payer invoices
- Reverse charge support
- Multiple VAT rates
- Foreign currency support
- Czech bank database (names, BIC/SWIFT, IBAN generation)
- Automatic address parsing (street + building number)
- Country name to ISO code resolution
- Fluent API with method chaining
- Total rounding
- Save to file or download as HTTP response
Requirements
- PHP 8.3+
- Extensions:
dom,bcmath
Installation
Quick Start
VAT Payer Invoice
Credit Note
Reverse Charge
Foreign Currency
Document Types
| Type | Enum Value | Description |
|---|---|---|
| 1 | DocumentType::Invoice |
Standard invoice (default) |
| 2 | DocumentType::CreditNote |
Credit note |
| 3 | DocumentType::DebitNote |
Debit note |
| 4 | DocumentType::ProformaInvoice |
Proforma invoice |
| 5 | DocumentType::AdvanceInvoice |
Advance invoice |
| 6 | DocumentType::AdvanceCreditNote |
Advance credit note |
| 7 | DocumentType::SimplifiedInvoice |
Simplified invoice |
API Reference
Invoice
| Method | Description |
|---|---|
setNumber(string) |
Invoice number |
setIssueDate(string) |
Issue date (YYYY-MM-DD) |
setDueDate(string) |
Due date (YYYY-MM-DD) |
setDeliveryDate(string) |
Delivery / tax point date |
setDocumentType(DocumentType) |
Document type (default: Invoice) |
setVatPayer(bool) |
Whether the supplier is a VAT payer |
setReverseCharge(bool) |
Enable reverse charge |
setReverseChargeType(string) |
Reverse charge code (1=gold, 2=emission, 4=construction, 5=waste) |
setFooterText(string) |
Note / footer text |
setOrderNumber(string) |
Order reference number |
setOriginalDocumentNumber(string) |
Original document reference (for credit/debit notes) |
setOriginalDocumentDate(string) |
Original document issue date (YYYY-MM-DD) |
setRoundTotal(bool) |
Round the total to integer |
setIssuingSystem(string) |
Name of the issuing system |
setCurrencyCode(string) |
Local currency code (default: CZK) |
setForeignCurrencyCode(string) |
Foreign currency code |
setCurrencyRate(float) |
Exchange rate |
setRefCurrencyRate(float) |
Reference exchange rate |
addItem(name, qty, unit, price, priceWithVat, vatRate, note?) |
Add an invoice line item |
export() |
Returns IsdocExporter instance |
Invoice Properties
| Property | Type | Description |
|---|---|---|
$invoice->supplier |
Party |
Supplier party (fluent setters) |
$invoice->customer |
Party |
Customer party (fluent setters) |
$invoice->payment |
PaymentInfo |
Payment details (fluent setters) |
Party
| Method | Description |
|---|---|
setName(string) |
Company or person name |
setStreet(string) |
Street with building number |
setCity(string) |
City |
setZip(string) |
Postal code |
setCountry(string) |
Country name (auto-resolved to ISO code) |
setCompanyId(string) |
Company registration number |
setVatId(string) |
VAT identification number |
setRegisterInfo(string) |
Commercial register info |
setEmail(string) |
Email address |
setPhone(string) |
Phone number |
setWeb(string) |
Website URL |
PaymentInfo
| Method | Description |
|---|---|
setAccountNumber(string) |
Bank account number (e.g. 19-2000145399) |
setBankCode(string) |
Bank code (e.g. 0800) |
setVariableSymbol(string) |
Variable symbol |
setConstantSymbol(string) |
Constant symbol |
setSpecificSymbol(string) |
Specific symbol |
IsdocExporter
| Method | Description |
|---|---|
toString() |
Returns the ISDOC XML as a string |
save(string $filepath) |
Saves the XML to a file |
download(?string $filename) |
Sends the XML as an HTTP download |
Development
License
MIT
All versions of isdoc-exporter with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.3 || ^8.4 || ^8.5
ext-dom Version *
ext-bcmath Version *
ext-dom Version *
ext-bcmath Version *
The package kenod/isdoc-exporter contains the following files
Loading the files please wait ...