Set To Label Set to (receiver) label in invoice

You can easily set "to" label (i.e. receiver details label) in invoice using setInvoiceTo function or You can set to label directly by passing array using setInvoiceToLabel() function with "to" parameter. "To" label normally includes "name" etc. You can add or remove these fields.

  
                            $xinvoice = new Xinvoice();
                            //set to array
                            $to = array("name" => "Receiver: ");
                            //set to label 
                            $xinvoice->setInvoiceToLabel($to);            
                            echo $xinvoice->render();