PHPackages                             pkg6/cloud-print - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pkg6/cloud-print

ActiveLibrary

pkg6/cloud-print
================

非官方云小票机SDK，支持飞鹅云，芯烨云，易联云，快递100，映美云，中午云，佳博云，优声云，365智能云打印等

v1.0.0(1y ago)232.7k↓100%7[1 issues](https://github.com/pkg6/cloud-print/issues)MITPHPPHP &gt;=8.0CI passing

Since Feb 20Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/pkg6/cloud-print)[ Packagist](https://packagist.org/packages/pkg6/cloud-print)[ RSS](/packages/pkg6-cloud-print/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (18)Used By (0)

 **云小票机SDK-cloud-print**

> 非官方云小票机SDK，支持飞鹅云，芯烨云，易联云，快递100，映美云，中午云，佳博云，优声云，365智能云打印等

[![Latest Stable Version](https://camo.githubusercontent.com/a4703bf94ae6424fb57061e7cf4becfe95334052236094973349f190ec6dcc11/687474703a2f2f706f7365722e707567782e6f72672f706b67362f636c6f75642d7072696e742f76)](https://packagist.org/packages/pkg6/cloud-print) [![Total Downloads](https://camo.githubusercontent.com/17ad106c3443120347633b1b21a9e6801fbb5ac85c3d0b54764f668dfdc1c2f5/687474703a2f2f706f7365722e707567782e6f72672f706b67362f636c6f75642d7072696e742f646f776e6c6f616473)](https://packagist.org/packages/pkg6/cloud-print) [![Latest Unstable Version](https://camo.githubusercontent.com/c8091f751fd36ae82d3e7b747f20463db1e65aa4219582d2365a525e8aa0f825/687474703a2f2f706f7365722e707567782e6f72672f706b67362f636c6f75642d7072696e742f762f756e737461626c65)](https://packagist.org/packages/pkg6/cloud-print) [![License](https://camo.githubusercontent.com/9284775f353f1c59bbc3d10932f6b91c680a3676469cd8ccb290dd518bcc59d7/687474703a2f2f706f7365722e707567782e6f72672f706b67362f636c6f75642d7072696e742f6c6963656e7365)](https://packagist.org/packages/pkg6/cloud-print) [![PHP Version Require](https://camo.githubusercontent.com/607823d3919629e3489832fab8bc5806e8852c757cbd973cb8b60024432f875d/687474703a2f2f706f7365722e707567782e6f72672f706b67362f636c6f75642d7072696e742f726571756972652f706870)](https://packagist.org/packages/pkg6/cloud-print)

安装
--

[](#安装)

```
composer require pkg6/cloud-print

```

自定义缓存
-----

[](#自定义缓存)

> 基于
>
> ```
> public function setCache(CacheInterface $cache);
>
> ```

自定义日志
-----

[](#自定义日志)

> 基于
>
> ```
> public function setRequestLogger(LoggerInterface $logger)
> //自定义日志格式（借助guzzlehttp/guzzle中的handler）进行实现
> public function setMessageFormatter(MessageFormatter $messageFormatter)
>
> ```

适配模式
----

[](#适配模式)

> 需要定义的服务商实现客户端
>
>

### 配置

[](#配置)

>

### 实例化

[](#实例化)

```
$cloudPrint = new CloudPrint($config)
//自定义驱动
$cloudPrint->client("zhongwuyun")->request($method, $action, $privateParams)
//默认驱动
$cloudPrint->request($method, $action, $privateParams)

```

门脸模式
----

[](#门脸模式)

> 可以直接到实现请求的客户端，内置很多方法可以供使用

### 基于[中午云](http://www.zhongwu.co/)的 PHP 接口组件

[](#基于中午云的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Zhongwuyun([
    'appid'     => '******',
    'appsecret' => '******',
]);

```

### 基于 [优声云](https://www.ushengyun.com/) 的 PHP 接口组件

[](#基于-优声云-的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Ushengyun([
    'appId'     => '10001',
    'appSecret' => '**********',
]);

```

### 基于[佳博云](https://dev.poscom.cn/)的 PHP 接口组件

[](#基于佳博云的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Poscom([
    'memberCode' => '',
    'apiKey'     => '',
]);

```

### 基于[快递100](https://api.kuaidi100.com/document/5f0ff6adbc8da837cbd8aef8)的 PHP 接口组件

[](#基于快递100的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Kuaidi100([
    'key' => '',
    'secret' => '',
]);

```

### 基于[易联云](https://www.yilianyun.net/)的 PHP 接口组件

[](#基于易联云的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Yilianyun([
    'client_id'     => '',
    'client_secret' => '',
]);

```

### 基于[映美云](http://open.jolimark.com/)的 PHP 接口组件

[](#基于映美云的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Jolimark([
    'app_id'  => '',
    'app_key' => '',
]);

```

### 基于 [芯烨云](https://www.xpyun.net/open/index.html) 的 PHP 接口组件

[](#基于-芯烨云-的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Xpyun([
    'user'    => '',
    'userKey' => '',
]);

```

### 基于 [飞鹅云](http://help.feieyun.com/document.php) 的 PHP 接口组件

[](#基于-飞鹅云-的-php-接口组件)

```
$printer = \Pkg6\CloudPrint\Factory::Feieyun([
    'user' => '',
    'ukey' => '',
]);

```

支持厂商
----

[](#支持厂商)

- [飞鹅云](http://help.feieyun.com/document.php)
- [芯烨云](https://www.xpyun.net/open/index.html)
- [易联云](https://www.yilianyun.net/)
- [快递100](https://api.kuaidi100.com/document/5f0ff6a32977d50a94e10235)
- [映美云](http://open.jolimark.com/)
- [佳博云](https://dev.poscom.cn/)
- [中午云](http://www.zhongwu.co/)
- [优声云](https://www.ushengyun.com/)

加入我们
----

[](#加入我们)

如果你认可我们的开源项目，有兴趣为 cloud-print 的发展做贡献，竭诚欢迎加入我们一起开发完善。无论是 报告错误issues 或是 Pull Request 开发，那怕是修改一个错别字也是对我们莫大的帮助。

许可协议
----

[](#许可协议)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance55

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~40 days

Total

17

Last Release

275d ago

Major Versions

0.2.7 → v1.0.02025-03-14

PHP version history (3 changes)0.0.1PHP &gt;=7.0

0.2.0PHP &gt;=7.4

v1.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b119a234a9963e2266b2b493c037b1d7f01d3e17a06a3ffe94481549efa47b?d=identicon)[1751212020](/maintainers/1751212020)

---

Top Contributors

[![chihqiang](https://avatars.githubusercontent.com/u/40115555?v=4)](https://github.com/chihqiang "chihqiang (45 commits)")[![m809745357](https://avatars.githubusercontent.com/u/15150683?v=4)](https://github.com/m809745357 "m809745357 (2 commits)")

---

Tags

365快递100Cloud Print

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pkg6-cloud-print/health.svg)

```
[![Health](https://phpackages.com/badges/pkg6-cloud-print/health.svg)](https://phpackages.com/packages/pkg6-cloud-print)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M16.9k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M646](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
