PHPackages                             mouyong/puyingcloud-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mouyong/puyingcloud-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mouyong/puyingcloud-sdk
=======================

puyingcloud sdk

31.5k2PHPCI failing

Since Nov 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mouyong/puyingcloud-sdk)[ Packagist](https://packagist.org/packages/mouyong/puyingcloud-sdk)[ RSS](/packages/mouyong-puyingcloud-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 mouyong/puyingcloud-sdk
=========================

[](#-mouyongpuyingcloud-sdk-)

 普赢云 sdk.

[![TravisCI](https://camo.githubusercontent.com/5e2069df20a64331a28041eb280d4e5abd76b8273617829634f4fb15b062770a/68747470733a2f2f7472617669732d63692e6f72672f6d6f75796f6e672f707579696e67636c6f75642d73646b2e737667)](https://travis-ci.org/mouyong/puyingcloud-sdk)[![StyleCI](https://camo.githubusercontent.com/a178c4ace00f7967eb1fb8cd6ae7ca3d90725d29e693336cfff82a03e657bd58/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139393634323331382f736869656c64)](https://github.styleci.io/repos/199642318)

Installing
----------

[](#installing)

```
$ composer require mouyong/puyingcloud-sdk -vvv
```

Usage
-----

[](#usage)

```
use Yan\PuyingCloudSdk\Kernel\ContentFormatter;

require __DIR__.'/vendor/autoload.php';

$sdk = new \Yan\PuyingCloudSdk\PuyingCloudSdk([
    'debug' => true, // 必须有，不然 foundation 72 行会报 Notice 未定义索引 debug 错误
    'phone' => 'your-phone-number',
    'password' => 'your-password',

    'log' => [
        'file' => __DIR__.'/runtime.log',
        'level' => 'debug',
        'permission' => 0777,
    ],

    'cache' => new \Doctrine\Common\Cache\FilesystemCache(__DIR__.'/cache/'),
]);

class TestFormatter extends ContentFormatter implements \Yan\PuyingCloudSdk\Contracts\Formatter {
    public function format()
    {
        $title = $this->title($this->content['title']);

        $this->result = $title;
    }
}

$order = [
    'title' => '123',
    'desc' => '456',
];

try {
    echo json_encode($sdk->printer->createPrintTask($sn, '测试打印', new TestFormatter($order)));

    echo json_encode($sdk->printer->getPrinterlist());
} catch (\Exception $e) {
    echo $e->getMessage();
}

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/yan/ong/puyingcloud-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/yan/ong/puyingcloud-sdk/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b37a4e4a059db2044bd4bc4336035e1d58fc4771d599b25bde0772e4a711f301?d=identicon)[mouyong](/maintainers/mouyong)

---

Top Contributors

[![mouyong](https://avatars.githubusercontent.com/u/10336437?v=4)](https://github.com/mouyong "mouyong (43 commits)")

### Embed Badge

![Health badge](/badges/mouyong-puyingcloud-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/mouyong-puyingcloud-sdk/health.svg)](https://phpackages.com/packages/mouyong-puyingcloud-sdk)
```

###  Alternatives

[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

512323.2k15](/packages/norkunas-youtube-dl-php)[browner12/helpers

generic helpers

289676.6k7](/packages/browner12-helpers)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[tonysm/importmap-laravel

Use ESM with importmap to manage modern JavaScript in Laravel without transpiling or bundling.

148399.8k1](/packages/tonysm-importmap-laravel)[duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

73548.0k4](/packages/duncan3dc-fork-helper)[timothyasp/nova-badge-field

A Laravel Nova field.

58548.0k](/packages/timothyasp-nova-badge-field)

PHPackages © 2026

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