Download the PHP package leapfu/cloud-printer without Composer
On this page you can find all versions of the php package leapfu/cloud-printer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download leapfu/cloud-printer
More information about leapfu/cloud-printer
Files in leapfu/cloud-printer
Download leapfu/cloud-printer
More information about leapfu/cloud-printer
Files in leapfu/cloud-printer
Vendor leapfu
Package cloud-printer
Short Description 高扩展性云小票打印SDK,支持飞鹅云、芯烨云、易联云、快递100、映美云、佳博云、中午云、优声云等主流云打印服务,兼容 Laravel、ThinkPHP 等主流框架,统一API,易集成,易扩展。
License MIT
Homepage https://github.com/leapfu/cloud-printer
Package cloud-printer
Short Description 高扩展性云小票打印SDK,支持飞鹅云、芯烨云、易联云、快递100、映美云、佳博云、中午云、优声云等主流云打印服务,兼容 Laravel、ThinkPHP 等主流框架,统一API,易集成,易扩展。
License MIT
Homepage https://github.com/leapfu/cloud-printer
Please rate this library. Is it a good library?
Informations about the package cloud-printer
Cloud Printer
Cloud Printer 是一款高扩展性、易集成的 PHP 云小票打印 SDK,统一封装了飞鹅云、芯烨云、易联云、快递 100、映美云、佳博云、中午云、优声云等主流云打印服务,支持多驱动切换、主流框架集成、灵活配置和完善的异常处理。
主要特性
- 🚀 统一 API,屏蔽各家云打印厂商差异
- 🖨️ 支持多种主流云打印机
- 🧩 驱动可扩展,支持自定义云打印服务
- 📝 内置日志、缓存,支持自定义实现
- ⚡ 完善的异常处理体系
- 🛠️ 兼容 Laravel、ThinkPHP 等主流框架
- 📦 Composer 一键安装
快速上手
1. 安装依赖
2. 初始化 SDK
3. 打印文本(所有驱动统一 print 方法,参数为数组)
所有驱动都实现 print 方法,参数为数组(如 ['content' => '内容', 'sn' => 'SN', 'copies' => 1]),返回统一格式。其他高级功能请查阅对应驱动扩展方法文档。
框架集成用法
Laravel 集成
- 自动注册(支持 Laravel Package Discovery,无需手动配置)
-
发布配置文件(可选)
-
门面调用
- 容器调用
ThinkPHP 集成
- 在
config/cloudprint.php配置参数。 - 使用:
如需服务注册模板,可参考
src/ThinkPHP/provider.php。
安全性建议
- 敏感信息建议通过 .env 或环境变量配置,不要硬编码在代码仓库。
- 日志中避免输出账号、密钥等敏感数据。
贡献与支持
- 欢迎提交 PR 或 Issue 参与共建!
- 如需更多示例或遇到问题,欢迎提交 Issue。
获取帮助与联系方式
- 📧 [email protected]
- 🐧 QQ 群:824070084(备注"云打印 SDK")
- 🌐 官网:https://www.leapfu.com
- 📝 Issue 反馈:GitHub Issues
如有商务合作、定制开发、技术支持等需求,欢迎通过以上方式联系我们。
All versions of cloud-printer with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
php Version >=8.0
guzzlehttp/guzzle Version ^6.0 | ^7.0
psr/log Version ^1.0 | ^2.0 | ^3.0
psr/simple-cache Version ^1.0 | ^2.0 | ^3.0
psr/cache Version ^1.0 | ^2.0 | ^3.0
monolog/monolog Version ^2.8.0 | ^3.0
php Version >=8.0
guzzlehttp/guzzle Version ^6.0 | ^7.0
psr/log Version ^1.0 | ^2.0 | ^3.0
psr/simple-cache Version ^1.0 | ^2.0 | ^3.0
psr/cache Version ^1.0 | ^2.0 | ^3.0
monolog/monolog Version ^2.8.0 | ^3.0
The package leapfu/cloud-printer contains the following files
Loading the files please wait ...