miwaniec/ifirma-api
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 );
$invoiceId = $response->get('Identyfikator');
echo 'Invoice ID: ' . $invoiceId;
optionally, you can send invoice to KSeF right after adding (if you have KSeF enabled in your account)
$invoice->sendToKsef($invoiceId);
- Download invoice
$invoice = new \IFirmaApi\Invoice('login', 'key');
$invoice->getAsPdf('1/1/2019');
miwaniec/ifirma-api 适用场景与选型建议
miwaniec/ifirma-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33.18k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「invoice」 「ifirma」 「ksef」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 miwaniec/ifirma-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 miwaniec/ifirma-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 miwaniec/ifirma-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy invoice generation using Laravel Eloquent
A PSR-7 compatible library for making CRUD API endpoints
Laravel MPdf : Easily generate PDF files with arabic support
Szamlazz.hu integration for Laravel
Modern PHP 8.3+ BOLT 11 Lightning Network invoice encoder/decoder
Alfabank REST API integration
统计信息
- 总下载量: 33.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-17