dystcz/fakturoid
Composer 安装命令:
composer require dystcz/fakturoid
包简介
Laravel wrapper for Fakturoid
README 文档
README
Simple wrapper for official php package https://github.com/fakturoid/fakturoid-php
Docs
Installation
Step 1: Install package
Add the package in your composer.json by executing the command.
composer require dystcz/fakturoid
This will both update composer.json and install the package into the vendor/ directory.
Step 2: Configuration
First initialise the config file by running this command:
php artisan vendor:publish
With this command, initialize the configuration and modify the created file, located under config/fakturoid.php.
Configuration
return [ 'client_id' => env('FAKTUROID_CLIENT_ID', 'XXX'), 'client_secret' => env('FAKTUROID_CLIENT_SECRET', 'XXX'), 'account_slug' => env('FAKTUROID_ACCOUNT_SLUG'), 'user_agent' => env('FAKTUROID_USER_AGENT', 'Application <your@email.cz>'), ];
Examples
Create Subject, Create Invoice, Send Invoice
use Dystcz\Fakturoid\Facades\Fakturoid; try { // create subject $response = Fakturoid::getSubjectsProvider()->create([ 'name' => 'Firma s.r.o.', 'email' => 'aloha@pokus.cz' ]); if ($subject = $response->getBody()) { // Create invoice with lines $lines = [ [ 'name' => 'Big sale', 'quantity' => 1, 'unit_price' => 1000 ], ]; $invoiceProvider = Fakturoid::getInvoicesProvider(); $response = Fakturoid::getInvoicesProvider()->create([ 'subject_id' => $subject->id, 'lines' => $lines ]); $invoice = $response->getBody(); // Send created invoice $invoiceProvider->fireAction($invoice->id, 'deliver'); } } catch (\Exception $e) { dd($e->getCode() . ": " . $e->getMessage()); }
More examples
For more examples, please visit the Fakturoid documentation.
Credits
- Fakturoid s.r.o. fakturoid-php for the underlying package.
License
Copyright (c) 2019 - 2025 dyst digital s.r.o MIT Licensed.
dystcz/fakturoid 适用场景与选型建议
dystcz/fakturoid 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.67k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2025 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ecommerce」 「laravel」 「invoicing」 「fakturoid」 「dystopia」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dystcz/fakturoid 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dystcz/fakturoid 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dystcz/fakturoid 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Nevogate Payment Gateway SDK
Space invoices PHP sdk
Dealing with payments through the Egyptian payment gateway PayMob
WeFact API client library for PHP.
Accounting module for atmosphere and laravel
A PHP (and Laravel) package to interface with the Snipcart api.
统计信息
- 总下载量: 6.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-14