定制 imbue/wefact-api-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

imbue/wefact-api-php

最新稳定版本:1.1.0

Composer 安装命令:

composer require imbue/wefact-api-php

包简介

WeFact API client library for PHP.

README 文档

README

PHP library for online invoicing software wefact.nl

Getting started

Initializing the WeFact client

$client = new WeFact();
$client->setApiToken($yourApiToken);

Retrieve multiple invoices

$invoices = $client->invoices->list();

Get a single invoice

$invoice = $client->invoices->show([
    'InvoiceCode' => 'F0001',
]);

Creating an invoice

$invoice = $client->invoices->create([
    'DebtorCode' => 'DB10000',
    'InvoiceLines' => [
        [
            'Number' => 2,
            'ProductCode' => 'P0001'
        ],
        [
            'Description' => 'Reiskosten à € 0,19 per km',
            'PriceExcl' => 0.19
        ]
    ]
 ]);

Updating an invoice

$invoice = $client->invoices->edit([
    'Identifier' => 1,
    'Discount' => 10,
    'Term' => 30,
 ]);

Deleting an invoice

$invoice = $client->invoices->delete([
    'Identifier' => 1,
 ]);

Downloading an attachment

$invoices = $client->attachments->download([
    'ReferenceIdentifier' => '1',
    'Type' => 'pricequote',
    'Filename' => 'sample.pdf',
]);

Available controllers

  • Attachment
  • Credit invoice
  • Credit invoice lines
  • Debtor
  • Group
  • Invoice
  • Invoice line
  • Price quote
  • Price quote line
  • Product
  • Settings
  • Subscription

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-29