swiss-payment-slip/swiss-payment-slip-fpdf
Composer 安装命令:
composer require swiss-payment-slip/swiss-payment-slip-fpdf
包简介
Create Swiss payment slips with reference number (ESR) or without (ES) as PDFs with FPDF
README 文档
README
Do you need to create Swiss payment slips (called ESR) as PDF files in a project of yours? Then you found the right place, read on...
By the way if you don't like FPDF or don't want to use it for whatever reason, checkout SwissPaymentSlipTcpdf.
How to use
Just install the package (see Installation) and check out the contained examples in the examples folder.
How to extend for custom needs
[TODO] If you need help, ask for help.
Installation
Requirements
- PHP 5.4.x+
- SwissPaymentSlip (automatically installed by Composer)
- SwissPaymentSlipPdf (automatically installed by Composer)
Composer
Just install composer on your system, if not already there. Then create a composer.json file in your project's root folder and copy the following into it:
{
"require": {
"swiss-payment-slip/swiss-payment-slip-fpdf": "*"
}
}
After that you can install the package using
$ php composer.phar install
in your project's root folder.
Background Story
In february 2013 I was looking for a solution to create swiss payment slips for a project I had to do at my work place. After a short Google search I came across Manuel Reinhard's blog post about the class he made for that. On his Github project's page I found Peter Siska's pull request. His pull request introduced PSR-0 compatibility and he created a composer package on Packagist. So I tried Peter's version and it suited my basic needs.
BUT since the customer I was working for used custom designed payment slips I couldn't use Manuel's/Peter's script since it wasn't flexible enough. Now I had to decide whether I want to "just" change the script to fit my needs or to rewrite it and make it as flexible as possible. I decided myself for the latter.
TODOs
- Improve code documentation
- Add more examples/improve existing ones
- Write tests
- Release the stable release of the API
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub.
Author
This project was created by Marc Würth. See Background Story for more details.
License
SwissPaymentSlipFpdf is licensed under the MIT License. See the LICENSE file for details.
Thanks to
- http://ansuz.sooke.bc.ca/software/ocrb.php for OCRB font
- http://blog.fruit-lab.de/fpdf-font-converter/ for FPDF font converter
swiss-payment-slip/swiss-payment-slip-fpdf 适用场景与选型建议
swiss-payment-slip/swiss-payment-slip-fpdf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 280.66k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2013 年 03 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pdf」 「fpdf」 「Payment slip」 「Inpayment slip」 「Einzahlungsschein」 「ESR」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 swiss-payment-slip/swiss-payment-slip-fpdf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 swiss-payment-slip/swiss-payment-slip-fpdf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 swiss-payment-slip/swiss-payment-slip-fpdf 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
tfpdf
Extended FPDF
FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
Provides TCPDF integration for Symfony
FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
A adapter for the mPDF print library
统计信息
- 总下载量: 280.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-03-07