PHPackages                             puzzle9/zhongwu-printer - 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. [API Development](/categories/api)
4. /
5. puzzle9/zhongwu-printer

ActiveLibrary[API Development](/categories/api)

puzzle9/zhongwu-printer
=======================

zhongwu cloud printer api

1.0.0(7y ago)027MITPHPPHP &gt;=5.4.0

Since Nov 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/puzzle9/zhongwu-printer)[ Packagist](https://packagist.org/packages/puzzle9/zhongwu-printer)[ Docs](http://wiki.zhongwuyun.com/)[ RSS](/packages/puzzle9-zhongwu-printer/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

此项目 fork
======================================

[](#此项目-fork-httpsgiteecomfeigesdk)

中午云开放平台打印机PHP SDK
=================

[](#中午云开放平台打印机php-sdk)

安装 install
----------

[](#安装-install)

```
composer require puzzle9/zhongwu-printer

```

示例
--

[](#示例)

- 打印

```
$app_id = '******';

$app_secret = '********';

$rpc = new \zhongwu\protocol\RpcClient($app_id, $app_secret, 'http://api.zhongwuyun.com');

$Zprinter = new \zhongwu\Printer($rpc);

$device_id = '1111111';

$device_secret = '11111111';

$printdata = '中午云拥有自主研发的云打印机，提供稳定高效，高可用的云打印方案';

try {

    $Zprinter->set_args($device_id, $device_secret)->cloud_print($printdata);

} catch (Exception $e) {

}
```

- 设置声音

```
