hurah / invoice
Simple invoice generator based on wkhtmltopdf and twig for Hurah.
v1.0.69
2024-07-17 08:44 UTC
Requires
- php: ^8.3
- ext-json: *
- hurah/logger: ^v1
- knplabs/knp-snappy: ^1.4
- psr/log: ^1.1
- twig/twig: 3.4.3
Requires (Dev)
- ext-fileinfo: *
- phpunit/phpunit: ^9.3@dev
- dev-main
- v1.0.69
- v1.0.68
- v1.0.67
- v1.0.66
- v1.0.65
- v1.0.64
- v1.0.63-alpha
- v1.0.62-alpha
- v1.0.61-alpha
- v1.0.60-alpha
- v1.0.59-alpha
- v1.0.58-alpha
- v1.0.57-alpha
- v1.0.56-alpha
- v1.0.55-alpha
- v1.0.54-alpha
- v1.0.53-alpha
- v1.0.52-alpha
- v1.0.51-alpha
- v1.0.50-alpha
- v1.0.49-alpha
- v1.0.48-alpha
- v1.0.47-alpha
- v1.0.46-alpha
- v1.0.45-alpha
- v1.0.44-alpha
- v1.0.43-alpha
- v1.0.42-alpha
- v1.0.41-alpha
- v1.0.40-alpha
- v1.0.39-alpha
- v1.0.38-alpha
- v1.0.37-alpha
- v1.0.36-alpha
- v1.0.35-alpha
- v1.0.34-alpha
- v1.0.33-alpha
- v1.0.32-alpha
- v1.0.31-alpha
- v1.0.30-alpha
- v1.0.29-alpha
- v1.0.28-alpha
- v1.0.27-alpha
- v1.0.26-alpha
- v1.0.25-alpha
- v1.0.24-alpha
- v1.0.23-alpha
- v1.0.22-alpha
- v1.0.21-alpha
- v1.0.20-alpha
- v1.0.19-alpha
- v1.0.18-alpha
- v1.0.17-alpha
- v1.0.16-alpha
- v1.0.14-alpha
- v1.0.13-alpha
- v1.0.12-alpha
- v1.0.11-alpha
- v1.0.10-alpha
- v1.0.9-alpha
- v1.0.8-alpha
- v1.0.7-alpha
- v1.0.6-alpha
- v1.0.5-alpha
- v1.0.4-alpha
- v1.0.3-alpha
- v1.0.2-alpha
- v1.0.1-alpha
- v1.0.0-alpha
- dev-dependabot/composer/twig/twig-3.11.2
- dev-dependabot/composer/symfony/process-6.4.14
This package is auto-updated.
Last update: 2024-12-06 21:05:20 UTC
README
Invoice generation library for Hurah based on twig template engine and wkhtmltopdf.
Translations
Invoices can be translated by passing an array containing the translations to the Environment object. If the translation is missing the default is shown which also serves as the key.
$translation = [ 'VAT percentage' => 'BTW percentage' ]; $structure = new Structure(); $structure->setInvoice($yourInvoiceData); $environment = $structure->getEnvironment(); $environment->setTranslation($translation); // See tests for full invoice generation example.
{{ 'VAT percentage'|translate }} "BTW percentage"
{{ 'I am missing'|translate }} becomes "I am missing"