PHPackages                             ledc/yilianyun - 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. ledc/yilianyun

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

ledc/yilianyun
==============

Webman plugin ledc/yilianyun 易联云打印开放平台SDK，webman基础插件

v8.3.7(9mo ago)113MITPHPPHP &gt;=8.3

Since Jul 29Pushed 9mo agoCompare

[ Source](https://github.com/ledccn/webman-yilianyun)[ Packagist](https://packagist.org/packages/ledc/yilianyun)[ RSS](/packages/ledc-yilianyun/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

简介
==

[](#简介)

易联云打印开放平台SDK，webman基础插件

安装
--

[](#安装)

`composer require ledc/yilianyun`

webman v2版本使用本插件时，需要安装缓存组件：`composer require -W webman/cache`

配置与使用
-----

[](#配置与使用)

可以在 `.env` 文件中配置环境变量

```
YLY_CLIENT_ID=易联云开放平台：应用ID
YLY_CLIENT_SECRET=易联云开放平台：应用密钥
YLY_MACHINE_CODE=易联云打印机：终端号
YLY_DEVELOP_ID=易联云开放平台：开发者ID（非必填）
YLY_ENABLED=1
YLY_DEBUG=0

```

使用单例模式调用：

```
use Ledc\YiLianYun\YiLianYun;

// 文本打印
$result = YiLianYun::getInstance()->print('测试打印', time());

// 图片打印
$result = YiLianYun::getInstance()->picturePrint('https://www.baidu.com/img/bd_logo1.png', time());

// 直接调用POST方法，底层自动处理签名逻辑、AccessToken。
$result = YiLianYun::getInstance()->post('易联云接口地址', '易联云接口数组参数', true, true);
```

使用说明
----

[](#使用说明)

```
use Ledc\YiLianYun\Config;
use Ledc\YiLianYun\YiLianYun;
use support\Cache;
use support\Log;

$config = new Config([
    'client_id' => '易联云开放平台：应用ID',
    'client_secret' => '易联云开放平台：应用密钥',
    'machine_code_prod' => '【生产】易联云打印机：终端号（非必填）',
    'machine_code_test' => '【测试】易联云打印机：终端号（非必填）',
    'develop_id' => '易联云开放平台：开发者ID（非必填）',
    'timeout' => 10,
    'enabled' => true,
    'debug' => true,
]);

// 创建易联云SDK对象实例
$client = new YiLianYun($config, Cache::store(), Log::channel());

// 在创建SDK对象实例后，所有的方法都可以由IDE自动补全；例如：

// 文本打印
$result = $client->print('测试打印', time());
var_dump($result);

// 图片打印
$result = $client->picturePrint('https://www.baidu.com/img/bd_logo1.png', time());
var_dump($result);

// 直接调用POST方法，底层自动处理签名逻辑、AccessToken。
$result = $client->post('易联云接口地址', '易联云接口数组参数', true, true)
var_dump($result);
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance60

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (5 commits)")

### Embed Badge

![Health badge](/badges/ledc-yilianyun/health.svg)

```
[![Health](https://phpackages.com/badges/ledc-yilianyun/health.svg)](https://phpackages.com/packages/ledc-yilianyun)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

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

Shopware platform is the core for all Shopware ecommerce products.

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

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[oat-sa/generis

TAO generis library

11140.3k76](/packages/oat-sa-generis)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

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