承接 tomaj/invoice-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tomaj/invoice-client

Composer 安装命令:

composer require tomaj/invoice-client

包简介

Invoice client

README 文档

README

In development mode.

Build Status Code Climate Test Coverage Dependency Status

Latest Stable Version

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";
}

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-23