php code base for invoice generation and imports