2017 © Pedro Peláez
 

library invoice-client

Invoice client

image

tomaj/invoice-client

Invoice client

  • Wednesday, February 21, 2018
  • by tomaj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Invoice client

In development mode., (*1)

Build Status Code Climate Test Coverage Dependency Status, (*2)

Latest Stable Version, (*3)

Basic usage


use Invoice\InvoiceApi; use Invoice\Invoice; use Invoice\InvoiceItem; $invoiceApi = new InvoiceApi('*APIKEY*'); $invoiceItem = new InvoiceItem(); $invoiceItem ->setQuantity(10) ->setPrice(2.4) ->setVat(20); $invoice = new Invoice(); $invoice ->setName('Invoice 12323') ->setDescription('invoice description...') ->addItem($invoiceItem); // there are other method to set invoice properties... $result = $invoiceApi->createInvoice($invoice); if ($result->isOK()) { echo "Download pdf: " . $result->getDownloadUrl() . "\n"; echo "Online HTML version:" . $result->getHtmlUrl() . "\n"; } else { echo "Error: " . $result->getErrorMessage() . "\n"; }

The Versions

21/02 2018

dev-master

9999999-dev

Invoice client

  Sources   Download

MIT LGPL

The Requires

 

The Development Requires