PHPackages                             shayvmo/feieyun - 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. shayvmo/feieyun

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

shayvmo/feieyun
===============

FeiEYun printer

2.0.0(1y ago)2320MITPHPPHP &gt;=8.1

Since Jun 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shayvmo/feieyun)[ Packagist](https://packagist.org/packages/shayvmo/feieyun)[ RSS](/packages/shayvmo-feieyun/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

 飞鹅打印机接口
=========

[](#-飞鹅打印机接口-)

 飞鹅打印机

[![Build Status](https://camo.githubusercontent.com/5547cbeb9e4eb09e89cb2ef4292c5c1d1068a5bb381bc74f641003620bf89e6b/68747470733a2f2f7472617669732d63692e636f6d2f73686179766d6f2f6665696579756e2e7376673f6272616e63683d6d61696e)](https://travis-ci.com/shayvmo/feieyun)[![StyleCI](https://camo.githubusercontent.com/64332657f73a2b82a6716cbd270d1a80b66e8df384c6f73ff9deccf8a03b361e/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3337333036393833352f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/373069835?branch=main)

FeiEYun
-------

[](#feieyun)

---

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

github地址：

码云地址：

安装
--

[](#安装)

```
$ composer require shayvmo/feieyun -vvv
```

配置
--

[](#配置)

在使用本拓展之前，请先注册 [飞鹅云开放平台](http://help.feieyun.com/document.php) 账号，获取到相应的用户名和 api key

使用
--

[](#使用)

```
$username = 'username';
$u_key = 'u_key';

$feieyun = new \Shayvmo\Feieyun\FeiEYun($username, $u_key);

// 各个接口定义私有参数
$private_params = ['sn' => '打印机编号'];

// 方式1,设置公共参数apiname, eg: Open_queryPrinterStatus
$response_data = $feieyun->setApiName('Open_queryPrinterStatus')->request($private_params);

// 方式2,使用已定义的接口类
$response_data = $feieyun->checkPrinterStatus($private_params);
```

### Laravel

[](#laravel)

支持 laravel 5.5 以上

#### 在 Laravel 使用

[](#在-laravel-使用)

`config/services.php` 中配置以下

```
'feieyun' => [
    'username' => '',
    'ukey' => '',
],

```

方法参数注入

```
use Shayvmo\Feieyun\FeiEYun;

class FeiEYunController extends Controller
{
    public function show(FeiEYun $feiEYun)
    {
        return response()->json($feiEYun->checkPrinterStatus(['sn'=>'xxx']));
    }
}
```

服务名访问

```
class FeiEYunController extends Controller
{
    public function show()
    {
        return response()->json(app('feieyun')->checkPrinterStatus(['sn'=>'xxx']));
    }
}
```

### 查询打印机状态

[](#查询打印机状态)

```
$response = $feieyun->checkPrinterStatus(['sn'=>'xxxxx']);
```

示例：

```
{
    "msg":"ok",
    "ret":0,
    "data":"离线。",
    "serverExecutedTime":3
}
```

### 已定义的接口类

[](#已定义的接口类)

添加打印机: `addPrinter`

小票机打印订单: `createPrintOrder`

标签机打印订单: `createPrintLabelOrder`

删除打印机: `delPrinter`

修改打印机信息: `modifyPrinter`

清空待打印订单: `clearPrinterSqs`

查询订单状态: `queryOrderState`

查询打印机订单数: `queryOrderInfoByDate`

查询打印机状态: `checkPrinterStatus`

参考
--

[](#参考)

[飞鹅云开放平台](http://help.feieyun.com/document.php)

贡献代码
----

[](#贡献代码)

欢迎各位一起讨论

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance41

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~438 days

Total

4

Last Release

486d ago

Major Versions

1.0.2 → 2.0.02025-01-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/0230099957ac637eae0dfc897bdf56416c1847dedd1a4168b8432889723f02aa?d=identicon)[shayvmo](/maintainers/shayvmo)

---

Top Contributors

[![shayvmo](https://avatars.githubusercontent.com/u/17956919?v=4)](https://github.com/shayvmo "shayvmo (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shayvmo-feieyun/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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