Set From Data Set from (sender) data in invoice

You can easily set "from" data (i.e. sender details) in invoice using setInvoiceFrom function or You can set from data directly by passing array using setInvoiceFromData() function with "from" parameter. "From" data normally includes "name", "address1", "address2", "city", "state", "country", "postalcode", "email", "website" etc. You can add or remove these fields.

  
                            $xinvoice = new Xinvoice();
                            //set from array
                            $from = array("name" => "Test Company", "address1"=>" Dummy address");
                            //set from data 
                            $xinvoice->setInvoiceFromData($from);            
                            echo $xinvoice->render();