miwaniec/ifirma-api
最新稳定版本:v1.2.3
Composer 安装命令:
composer require miwaniec/ifirma-api
包简介
IFirmaApi is a wrapper for official iFirma API. IFirma is one of the most popular internet accounting systems in Poland.
README 文档
README
The wrapper in PHP for official iFirma API (in Polish). IFirma is one of the most popular internet accounting systems in Poland. API functions and fields are in Polish, names in my code are in English for better understanding. Created at the end of 2017 for internal projects, published in March 2019 here. If you need help, please create an issue in this repository. It is part of most useful API functions. Check examples below (more in example.php).
Installation - https://packagist.org/packages/miwaniec/ifirma-api
composer require miwaniec/ifirma-api
Usage
- Get accountancy month (current value in system)
$account = new \IFirmaApi\Account('login', 'key');
$response = $account->getAccountancyMonth();
echo 'Accountancy month: ' . $response->get('MiesiacKsiegowy') . '/' . $response->get('RokKsiegowy');
- Add invoice - a simple example for an existing contractor
$invoice = new \IFirmaApi\Invoice('login', 'key');
$invoceDomestic = new \IFirmaApi\Model\InvoiceDomestic('123456789', '2019-01-01', 7);
$invoceDomestic->addItem( new \IFirmaApi\Model\Item('IT support', 100, 3));
$response = $invoice->add( $invoceDomestic );
echo 'Invoice ID: '. $response->get('Identyfikator');
- Download invoice
$invoice = new \IFirmaApi\Invoice('login', 'key');
$invoice->getAsPdf('1/1/2019');
统计信息
- 总下载量: 29.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-17