You can hide/display different sections of invoice by setting display of that the section. You can set this display information directly in data file or using the function setInvoiceDisplaySettings(). If true or not set display of that section, it will show the section. To hide any section, you need to set display false of that section. You can hide complete section or subsection of that section.
$xinvoice = new Xinvoice(); /** * Set display settings of invoice sections * @param string $section section of invoice * @param string $subsection sub section of invoice (optional) * @param bool $display set display of section true to show, false to hide * return object Object of xinvoice */ // hide complete header $xinvoice->setInvoiceDisplaySettings("header","",false); //hide from(Sender) "name" not complete "from"(sender) $xinvoice->setInvoiceDisplaySettings("from","name",false); echo $xinvoice->render();