### Run basic InvoiceSuite examples Source: https://github.com/horstoeko/invoicesuite/wiki/Examples Run the basic examples from a checked-out InvoiceSuite project with Composer dependencies installed. Some examples depend on output from another example or on local files in tests/assets. ```bash php examples/01_BuildInvoice.php php examples/02_ReadInvoice.php php examples/03_BuildPdfInvoice.php ``` -------------------------------- ### Complete minimal example with default template Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization A complete example that creates a visualizer, sets the default template, renders HTML markup, and writes it to a file. This is a good starting point for developing custom templates because HTML is easier to inspect than PDF. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentReader; use horstoeko\invoicesuite\visualizers\InvoiceSuiteVisualizer; $reader = InvoiceSuiteDocumentReader::createFromFile(__DIR__ . '/invoice.xml'); $visualizer = InvoiceSuiteVisualizer::createFromDocumentReader($reader) ->setDefaultTemplate(); $html = $visualizer->renderMarkup(); file_put_contents(__DIR__ . '/invoice-preview.html', $html); ``` -------------------------------- ### Run typical InvoiceSuite example sequence Source: https://github.com/horstoeko/invoicesuite/wiki/Examples Typical sequence of examples to run in order. Some examples depend on output from another example or on local files in tests/assets. ```bash php examples/01_BuildInvoice.php php examples/02_ReadInvoice.php php examples/03_BuildPdfInvoice.php php examples/05_Visualizer.php php examples/07_ValidationXsd.php ``` -------------------------------- ### Install horstoeko/invoicesuite with Composer Source: https://github.com/horstoeko/invoicesuite/blob/master/README.md Install the horstoeko/invoicesuite package using Composer. This is the recommended installation method. ```bash composer require "horstoeko/invoicesuite" ``` -------------------------------- ### Build a document with InvoiceSuiteDocumentBuilder Source: https://github.com/horstoeko/invoicesuite/wiki/Architecture Minimal example for creating a document. The provider is selected explicitly via 'zffxextended' because the target format must be known before construction. The provider determines the concrete builder class, root class, serializer setup, and profile-specific behavior. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentBuilder; $builder = InvoiceSuiteDocumentBuilder::createByProviderUniqueId('zffxextended'); $builder ->setDocumentNo('RE-2026-0001') ->setDocumentCurrency('EUR'); ``` -------------------------------- ### Load example helper file Source: https://github.com/horstoeko/invoicesuite/wiki/Creating-an-electronic-invoice-document Loads an additional helper file used only by the example environment. Not required by InvoiceSuite itself. ```php require __DIR__ . '/00_ExampleHelpers.php'; ``` -------------------------------- ### Install InvoiceSuite via Composer Source: https://github.com/horstoeko/invoicesuite/wiki/Installation Run this command in your project root to install the package and its dependencies. ```sh composer require horstoeko/invoicesuite ``` -------------------------------- ### Minimal header reading example Source: https://github.com/horstoeko/invoicesuite/wiki/Reading-an-electronic-invoice-document Minimal example reading document number, date, and currency, then printing them with printf. Uses null-safe operator for date formatting. ```php $reader->getDocumentNo($documentNumber); $reader->getDocumentDate($documentDate); $reader->getDocumentCurrency($documentCurrency); printf("Invoice %s from %s in currency %s\n", $documentNumber, $documentDate?->format('Y-m-d') ?? '', $documentCurrency ); ``` -------------------------------- ### Verify Installation with InvoiceSuiteDocumentBuilder Source: https://github.com/horstoeko/invoicesuite/wiki/Installation Use this snippet to confirm that the package is installed and the autoloader is configured correctly. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentBuilder; $builder = InvoiceSuiteDocumentBuilder::createByProviderUniqueId('zffxcomfort'); ``` -------------------------------- ### Example file template with $document Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization Tiny example template for the file renderer. The variable $document is available and contains the InvoiceSuiteDocumentReader. ```html getDocumentNo($documentNo); $document->getDocumentDate($documentDate); $document->getDocumentBuyerName($buyerName); ?>
Date: format('Y-m-d'); ?>
Buyer:
``` -------------------------------- ### Restarting and reading billing periods with firstDocumentBillingPeriod() Source: https://github.com/horstoeko/invoicesuite/wiki/Reading-an-electronic-invoice-document Restarts reading billing periods from the beginning using firstDocumentBillingPeriod() and then iterates with a do-while loop calling nextDocumentBillingPeriod(). The example formats start and end dates with nullable-safe calls and prints them. ```php if ($reader->firstDocumentBillingPeriod()) { do { $reader->getDocumentBillingPeriod($startDate, $endDate, $description); echo sprintf( "%s - %s (%s)\n", $startDate?->format('Y-m-d') ?? '', $endDate?->format('Y-m-d') ?? '', $description ); } while ($reader->nextDocumentBillingPeriod()); } ``` -------------------------------- ### fromFile Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuitePdfExtractor Static method to start getting attached files from a PDF file. ```APIDOC ## fromFile (static) ### Description Start getting attached files from a PDF file. ### Signature ```php public static function fromFile(string $pdfFilename): static ``` ### Parameters - **pdfFilename** (string) - Required - The path to the PDF file. ### Returns - **static** - A new instance of the extractor. ``` -------------------------------- ### Detect invoice format with invoicesuite:detect Source: https://github.com/horstoeko/invoicesuite/wiki/Console-commands The general usage shows the command's arguments and options. The first example detects a structured invoice document (XML example). The second example detects a hybrid PDF invoice document. The third example returns JSON output for a PDF file. ```sh vendor/bin/invoicesuite invoicesuite:detect [options] [--]Buyer: {{ $buyerName }}
``` -------------------------------- ### Provider ID examples Source: https://github.com/horstoeko/invoicesuite/wiki/Implementing-a-custom-provider Examples of stable provider IDs that are short, lowercase, and profile-aware. Avoid marketing names or version numbers unless the version is part of the actual provider identity. ```text myformat myformatbasic myformatcomfort myformatextended ``` -------------------------------- ### getContent Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentBuilder Get the content as XML string. ```APIDOC ## getContent ### Description Get the content as XML string. ### Method getContent ### Signature ```php public function getContent(): string ``` ### Returns string - The XML content. ``` -------------------------------- ### getDocumentBuyerDescription Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuitePeppol30CreditNoteProviderReader Gets the description of the buyer/customer party. ```APIDOC ## getDocumentBuyerDescription ### Description Gets the description of the buyer/customer party. ### Method N/A (PHP method) ### Signature ```php public function getDocumentBuyerDescription(?string $newDescription): static ``` ### Parameters - **newDescription** (string, nullable) - Additional information about the buyer/customer party. ### Returns - **static** - Returns the current instance for method chaining. ``` -------------------------------- ### getDescription Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProvider Get a short description for the provider. ```APIDOC ## getDescription ### Description Get a short description for the provider. ### Signature ```php public function getDescription(): string ``` ### Returns - **string** - The description. ``` -------------------------------- ### getDocumentBillingPeriod Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentReader Get the start and/or end date of the billing period. Sets the start date, end date, and description of the billing period. ```APIDOC ## getDocumentBillingPeriod ### Description Get the start and/or end date of the billing period. Sets the start date, end date, and description of the billing period. ### Method public function getDocumentBillingPeriod(?DateTimeInterface $newStartDate, ?DateTimeInterface $newEndDate, ?string $newDescription): static ### Parameters - **newStartDate** (DateTimeInterface) - Optional - Start of the billing period. - **newEndDate** (DateTimeInterface) - Optional - End of the billing period. - **newDescription** (string) - Optional - Further information of the billing period (Obsolete). ### Returns Returns a value of type __static__. ``` -------------------------------- ### getDocumentPositionBillingPeriod Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentReader Method to get the billing period start and/or end date from the latest document position. ```APIDOC ## getDocumentPositionBillingPeriod ### Description Gets the start and/or end date of the billing period from the latest position. ### Method public function getDocumentPositionBillingPeriod( ?DateTimeInterface $newStartDate, ?DateTimeInterface $newEndDate, ?string $newDescription, ): static ### Parameters - **newStartDate** (DateTimeInterface) - Optional - Start of the billing period - **newEndDate** (DateTimeInterface) - Optional - End of the billing period - **newDescription** (string) - Optional - Further information of the billing period (Obsolete) ### Returns Returns a value of type __static__ ``` -------------------------------- ### Bootstrap configuration example Source: https://github.com/horstoeko/invoicesuite/wiki/Configuration Shown as a realistic bootstrap block. Because the settings are static and global, configuration is usually performed once during application bootstrap. ```php use horstoeko\invoicesuite\InvoiceSuiteSettings; InvoiceSuiteSettings::setAmountDecimals(4); InvoiceSuiteSettings::setDecimalSeparator('.'); InvoiceSuiteSettings::setUnitAmountDecimals(6); ``` -------------------------------- ### Import ZugferdQuickDescriptor class Source: https://github.com/horstoeko/invoicesuite/wiki/Legacy-support Imports the main quick descriptor class from the compatibility layer. ```php use horstoeko\zugferd\quick\ZugferdQuickDescriptor; ``` -------------------------------- ### Create visualizer from document reader Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization A minimal example that creates a visualizer from an existing document reader. The visualizer still needs a renderer and a template before it can generate markup. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentReader; use horstoeko\invoicesuite\visualizers\InvoiceSuiteVisualizer; $reader = InvoiceSuiteDocumentReader::createFromFile(__DIR__ . '/invoice.xml'); $visualizer = InvoiceSuiteVisualizer::createFromDocumentReader($reader); ``` -------------------------------- ### Use file template renderer Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization Example of using the file template renderer. setTemplate() must receive a path to a readable template file. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentReader; use horstoeko\invoicesuite\visualizers\InvoiceSuiteVisualizer; use horstoeko\invoicesuite\visualizers\renderers\InvoiceSuiteVisualizerFileTemplateRenderer; $reader = InvoiceSuiteDocumentReader::createFromFile(__DIR__ . '/invoice.xml'); $visualizer = InvoiceSuiteVisualizer::createFromDocumentReader($reader) ->setRenderer(new InvoiceSuiteVisualizerFileTemplateRenderer()) ->setTemplate(__DIR__ . '/templates/invoice.php'); $html = $visualizer->renderMarkup(); ``` -------------------------------- ### Create a document with the legacy builder Source: https://github.com/horstoeko/invoicesuite/wiki/Legacy-support This example shows the classic builder workflow using the legacy API. It creates a new document with the EN16931 profile, sets document information, seller, buyer, payment means, and a position, then writes the XML to a file. The method names are the legacy API names, and internally the builder forwards to the InvoiceSuite document builder. ```php use DateTime; use horstoeko\zugferd\ZugferdDocumentBuilder; use horstoeko\zugferd\ZugferdProfiles; $document = ZugferdDocumentBuilder::createNew(ZugferdProfiles::PROFILE_EN16931); $document->setDocumentInformation( 'RE-2026-0001', '380', new DateTime('2026-04-03'), 'EUR' ); $document->setDocumentSeller('Supplier Ltd.'); $document->setDocumentSellerAddress('Supplier Street 1', '', '', '10115', 'Berlin', 'DE'); $document->setDocumentBuyer('Customer Inc.'); $document->setDocumentBuyerAddress('Customer Street 10', '', '', '20095', 'Hamburg', 'DE'); $document->addDocumentPaymentMean('58'); $document->addNewPosition('1'); $document->setDocumentPositionProductDetails('Product A'); $document->setDocumentPositionNetPrice(100.00); $document->setDocumentPositionQuantity(1.0, 'H87'); $document->setDocumentPositionTax('S', 'VAT', 19.0); $document->setDocumentPositionLineSummation(100.00); $document->writeFile(__DIR__ . '/invoice.xml'); ``` -------------------------------- ### Render PDF from existing invoice file Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization Creates a visualizer from an existing invoice XML file and renders it to a PDF using the default template. This is the shortest end-to-end example. ```php use horstoeko\invoicesuite\visualizers\InvoiceSuiteVisualizer; $visualizer = InvoiceSuiteVisualizer::createFromFile(__DIR__ . '/invoice.xml') ->setDefaultTemplate(); $visualizer->renderPdfFile(__DIR__ . '/invoice.pdf'); ``` -------------------------------- ### Creator Metadata Methods Source: https://github.com/horstoeko/invoicesuite/wiki/Creating-an-electronic-invoice-pdf-document Methods to get and set the additional creator tool and get the creator tool name for the PDF metadata. ```APIDOC ## getAdditionalCreatorTool() ### Description Returns the additional creator tool name used in the PDF metadata. ### Method GET ### Endpoint N/A (PHP method) ### Parameters None ### Response Returns a string representing the additional creator tool name. ## setAdditionalCreatorTool(string $newAdditionalCreatorTool) ### Description Sets the additional creator tool name to be written into the PDF metadata. ### Method SET ### Endpoint N/A (PHP method) ### Parameters - **$newAdditionalCreatorTool** (string) - Required - The new additional creator tool name. ### Response No return value. ## getCreatorToolName() ### Description Returns the creator tool name used in the PDF metadata. ### Method GET ### Endpoint N/A (PHP method) ### Parameters None ### Response Returns a string representing the creator tool name. ``` -------------------------------- ### Create builder and reader for invoice documents Source: https://github.com/horstoeko/invoicesuite/wiki/Home Shows the primary entry points for creating and reading invoice documents. The builder is instantiated with the provider unique ID 'zffxcomfort', and the reader loads an XML file. This example is XML-focused because all bundled providers currently use XML. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentBuilder; use horstoeko\invoicesuite\InvoiceSuiteDocumentReader; $builder = InvoiceSuiteDocumentBuilder::createByProviderUniqueId('zffxcomfort'); $reader = InvoiceSuiteDocumentReader::createFromFile(__DIR__ . '/invoice.xml'); ``` -------------------------------- ### addDocumentBillingPeriod Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentBuilder Adds the start and/or end date of the billing period. Accepts optional start date, end date, and description parameters. ```APIDOC ## addDocumentBillingPeriod ### Description Add a the start and/or end date of the billing period. ### Method addDocumentBillingPeriod ### Signature public function addDocumentBillingPeriod(?DateTimeInterface $newStartDate = null, ?DateTimeInterface $newEndDate = null, ?string $newDescription = null): static ### Parameters - **newStartDate** (DateTimeInterface) - Optional - Start of the billing period - **newEndDate** (DateTimeInterface) - Optional - End of the billing period - **newDescription** (string) - Optional - Further information of the billing period (Obsolete) ### Returns Returns a value of type __static__ ``` -------------------------------- ### setDocumentBillingPeriod Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentBuilder Sets the start and/or end date of the billing period. Accepts optional start date, end date, and description parameters. ```APIDOC ## setDocumentBillingPeriod ### Description Set the start and/or end date of the billing period. ### Method setDocumentBillingPeriod ### Signature public function setDocumentBillingPeriod(?DateTimeInterface $newStartDate = null, ?DateTimeInterface $newEndDate = null, ?string $newDescription = null): static ### Parameters - **newStartDate** (DateTimeInterface) - Optional - Start of the billing period - **newEndDate** (DateTimeInterface) - Optional - End of the billing period - **newDescription** (string) - Optional - Further information of the billing period (Obsolete) ### Returns Returns a value of type __static__ ``` -------------------------------- ### Implement PDF support methods Source: https://github.com/horstoeko/invoicesuite/wiki/Implementing-a-custom-provider Example implementation of the three PDF support methods. The attachment filename is part of format interoperability; do not invent a filename if the target standard requires a specific one. ```php public function getPdfAllowedAttachmentFilenames(): array { return [ 'myformat-invoice.xml', ]; } public function getPdfDefaultAttachmentFilename(): string { return 'myformat-invoice.xml'; } public function getPdfConstructorClassName(): string { return InvoiceSuiteMyFormatPdfConstructor::class; } ``` -------------------------------- ### Build the document DTO header Source: https://github.com/horstoeko/invoicesuite/wiki/Creating-an-electronic-invoice-document Builds a neutral DTO graph for the document header instead of populating the provider syntax step by step. The example sets a number, description, type, date, notes, and currency on the header DTO. ```php $dtoDocumentHeader = (new InvoiceSuiteDocumentHeaderDTO()) ->setNumber('R87654321012345') ->setDescription('WARENRECHNUNG') ->setType(InvoiceSuiteCodelistDocumentTypes::COMMERCIAL_INVOICE->value) ->setDate(DateTime::createFromFormat('Ymd', '20241115')) ->addNote(new InvoiceSuiteNoteDTO('Es bestehen Rabatt- oder Bonusvereinbarungen.', 'ST3', 'AAK')) ->setCurrency(InvoiceSuiteCodelistCurrencyCodes::EURO->value) ``` -------------------------------- ### Run main quality checks with composer checkstyle:run Source: https://github.com/horstoeko/invoicesuite/blob/master/CONTRIBUTING.md Run this command to execute the main quality checks: lint check, PHP-CS-Fixer in dry-run mode, and PHPStan. The command should be run before committing and must pass. ```bash composer checkstyle:run ``` -------------------------------- ### Import PDF document builder and reader classes Source: https://github.com/horstoeko/invoicesuite/wiki/Home Shows the entry points for hybrid PDF invoices. Use these classes when working with PDF-based electronic invoices. ```php use horstoeko\invoicesuite\InvoiceSuitePdfDocumentBuilder; use horstoeko\invoicesuite\InvoiceSuitePdfDocumentReader; ``` -------------------------------- ### Files created by provider scaffold Source: https://github.com/horstoeko/invoicesuite/wiki/Implementing-a-custom-provider Lists the three files created by the provider scaffold command. Treat these as a starting point, not finished code, and review the provider first before filling in reader or builder methods. ```text InvoiceSuiteMyFormatProvider.php InvoiceSuiteMyFormatProviderReader.php InvoiceSuiteMyFormatProviderBuilder.php ``` -------------------------------- ### getDocumentCompleteDate Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProviderReader Gets the document period. ```APIDOC ## getDocumentCompleteDate ### Description Gets the document period. ### Method getDocumentCompleteDate ### Signature ```php public function getDocumentCompleteDate(?DateTimeInterface $newCompleteDate): static ``` ### Parameters - **newCompleteDate** (DateTimeInterface) - Optional - Contractual due date of the document ### Returns Returns a value of type __static__ ``` -------------------------------- ### getDocumentLanguage Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProviderReader Gets the document language. ```APIDOC ## getDocumentLanguage ### Description Gets the document language. ### Method getDocumentLanguage ### Signature ```php public function getDocumentLanguage(?string $newDocumentLanguage): static ``` ### Parameters - **newDocumentLanguage** (string) - Optional - Language indicator. The language code in which the document was written ### Returns Returns a value of type __static__ ``` -------------------------------- ### Create document builder by provider unique ID Source: https://github.com/horstoeko/invoicesuite/wiki/Creating-an-electronic-invoice-document Selects the target format by provider unique ID. The example uses 'zffxcomfort' for Factur-X / ZUGFeRD COMFORT. ```php use horstoeko\invoicesuite\InvoiceSuiteDocumentBuilder; $documentBuilder = InvoiceSuiteDocumentBuilder::createByProviderUniqueId('zffxcomfort'); ``` -------------------------------- ### getDocumentDescription Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProviderReader Gets the document description. ```APIDOC ## getDocumentDescription ### Description Gets the document description. ### Method getDocumentDescription ### Signature ```php public function getDocumentDescription(?string $newDocumentDescription): static ``` ### Parameters - **newDocumentDescription** (string) - Optional - The documenttype as free text ### Returns Returns a value of type __static__ ``` -------------------------------- ### Get package root and source directories Source: https://github.com/horstoeko/invoicesuite/wiki/Configuration Returns the package root and source directories. Useful in infrastructure code, debugging, testing, or extension scenarios. ```php use horstoeko\invoicesuite\InvoiceSuiteSettings; $rootDir = InvoiceSuiteSettings::getRootDirectory(); $srcDir = InvoiceSuiteSettings::getSourceDirectory(); ``` -------------------------------- ### Read a document with the legacy reader Source: https://github.com/horstoeko/invoicesuite/wiki/Legacy-support This example demonstrates the classic 'read and guess' workflow using the legacy reader. It reads an XML file, retrieves document information, seller, and buyer, and prints them. Internally, the document is detected and parsed through InvoiceSuiteDocumentReader. ```php use horstoeko\zugferd\ZugferdDocumentReader; $reader = ZugferdDocumentReader::readAndGuessFromFile(__DIR__ . '/invoice.xml'); $reader->getDocumentInformation( $documentNo, $documentType, $documentDate, $currency ); $reader->getDocumentSeller($sellerName); $reader->getDocumentBuyer($buyerName); echo $documentNo . PHP_EOL; echo $sellerName . PHP_EOL; echo $buyerName . PHP_EOL; ``` -------------------------------- ### getDocumentSupplyChainEvent Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteDocumentReader Get the date of the delivery. ```APIDOC ## getDocumentSupplyChainEvent ### Description Get the date of the delivery. ### Method public function getDocumentSupplyChainEvent(?DateTimeInterface $newDate): static ### Parameters - **newDate** (DateTimeInterface) - Optional - Actual delivery date ### Returns Returns a value of type __static__ ``` -------------------------------- ### offsetGet Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuitePdfExtractor Gets an attachment by index. ```APIDOC ## offsetGet ### Description Get an attachment by index. ### Signature ```php public function offsetGet(mixed $offset): ?\InvoiceSuitePdfExtractorAttachment ``` ### Parameters - **offset** (mixed) - Required - The index of the attachment. ### Returns - **?\InvoiceSuitePdfExtractorAttachment** - The attachment at the given offset, or null if not found. ``` -------------------------------- ### Create provider scaffold Source: https://github.com/horstoeko/invoicesuite/wiki/Console-commands Creates a provider scaffold with namespace, directory, provider class name, and optional unique ID and description. The directory is created automatically if it does not exist. ```sh vendor/bin/invoicesuite invoicesuite:providers:make \ 'Acme\InvoiceSuite\Providers' \ src/InvoiceSuite/Providers \ AcmeInvoiceProvider \ --unique-id=acmeinvoice \ --description='ACME invoice provider' ``` -------------------------------- ### Import InvoiceSuiteVisualizerAbstractRenderer Source: https://github.com/horstoeko/invoicesuite/wiki/Visualization Import the abstract base class for custom renderers. This is the first step when implementing your own renderer. ```php use horstoeko\invoicesuite\visualizers\renderers\abstracts\InvoiceSuiteVisualizerAbstractRenderer; ``` -------------------------------- ### getParameters Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProvider Get parameters for the provider. ```APIDOC ## getParameters ### Description Get parameters. ### Signature ```php public function getParameters(): array ``` ### Returns - **arrayRendered by a custom renderer.
", htmlspecialchars((string)$documentNo, ENT_QUOTES, "UTF-8") ); } } ``` -------------------------------- ### getDocumentSellerId Source: https://github.com/horstoeko/invoicesuite/wiki/Class-InvoiceSuiteFatturaPaProviderReader Gets the ID of the seller/supplier party. ```APIDOC ## getDocumentSellerId ### Description Gets the ID of the seller/supplier party. ### Method GET ### Endpoint `getDocumentSellerId(?string $newId): static` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **newId** (string) - Optional - An identifier of the party. In many systems, identification is key information. ### Returns Returns a value of type __static__ ``` -------------------------------- ### invoicesuite:visualize usage Source: https://github.com/horstoeko/invoicesuite/wiki/Console-commands Renders an XML or JSON invoice document as human-readable PDF or HTML output. Uses InvoiceSuiteVisualizer::createFromFile(...) and falls back to the built-in default template when no custom template is given. ```sh vendor/bin/invoicesuite invoicesuite:visualize [options] [--]