PHPackages                             spanbin/yyfp - 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. spanbin/yyfp

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

spanbin/yyfp
============

ThinkPHP用友税务云SDK

v1.0.3(3y ago)043Apache-2.0PHPPHP &gt;=5.6.0

Since Oct 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/spanbin/yyfp)[ Packagist](https://packagist.org/packages/spanbin/yyfp)[ Docs](https://github.com/spanbin/yyfp)[ RSS](/packages/spanbin-yyfp/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

用友税务云SDK
========

[](#用友税务云sdk)

基于ThinkPHP用友税务云SDK

安装
--

[](#安装)

> composer require spanbin/yyfp

配置
--

[](#配置)

```
// 测试环境yyfp配置
'yyfp' => [
    // 应用id
    'appId' => 'commontesterCA',
    // 接口域名
    'domain' => 'https://yesfp.yonyoucloud.com',
    // 接口证书
    'certificate' => __DIR__.'/pro22.pfx',
    // 证书密码
    'password' => 'password'
]

// 正式环境yyfp配置
'yyfp' => [
    // 应用id
    'appId' => '应用id',
    // 接口域名
    'domain' => 'https://tax.diwork.com',
    // 接口证书
    'certificate' => '申请到的证书路径',
    // 证书密码
    'password' => '申请到的证书密码'
]

```

使用
--

[](#使用)

```
use spanbin\yyfp\Yyfp;

$yyfp = new Yyfp();

$fpqqlsh = 'SHTEST'.time();
$requestdatas = array(
    array(
        'FPQQLSH' => $fpqqlsh,
        'FPLX' => 4,
        'XSF_NSRSBH' => '201609140000001',
        'ORGCODE' => '20160914001',
        'GMF_MC' => '天津国联鸿泰科技有限公司',
        'GMF_DZDH' => '天津市河北区王串场街王串场四号路4号增19号 86-022-84847456',
        'GMF_YHZH' => '中国建设银行股份有限公司天津河北支行 12050166080000000517',
        'GMF_NSRSBH' => '11111111111',
        'ZDYBZ' => '这是放射所报名费xx单号的开票',
        'JSHJ' => 100.00,
        'items' => array(
            array(
                'XMMC' => '技术服务费',
                'SPBM' => '3040101',
                'XMJSHJ' => 100.00,
                'SL' => 0.13,
            )
        )
    )
);
$url = array(
    array(
        'fpqqlsh' => $fpqqlsh,
        'url' => 'https://github.com/spanbin/yyfp'
    )
);
$email = array(
      array(
      'fpqqlsh' => $fpqqlsh,
      'address' => 'shengjianbin@gmail.com'
      )
);
$params = array(
    'requestdatas' => json_encode($requestdatas),
    'email' => json_encode($email),
    'url' => json_encode($url),
    'autoAudit' => 'true'
);

 echo '';

$res = $yyfp->insertWithArray($params);
print_r($res);

$params = [
    'fpqqlsh' => $fpqqlsh
];

$res = $yyfp->queryInvoiceStatus($params);
print_r($res);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

4

Last Release

1456d ago

### Community

Maintainers

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

---

Top Contributors

[![spanbin](https://avatars.githubusercontent.com/u/17084270?v=4)](https://github.com/spanbin "spanbin (6 commits)")

---

Tags

thinkphpyesfpyonyoufapiao

### Embed Badge

![Health badge](/badges/spanbin-yyfp/health.svg)

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

###  Alternatives

[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)[xiaodi/think-pullword

ThinkPHP 分词/抽词 扩展包

5512.1k](/packages/xiaodi-think-pullword)[yupoxiong/region

ThinkPHP省市区(县)街道四级联动扩展

1032.9k1](/packages/yupoxiong-region)[isszz/rotate-captcha

Rotate image captcha

801.7k](/packages/isszz-rotate-captcha)[xiaodi/think-pinyin

ThinkPHP 中文转拼音扩展包

344.6k](/packages/xiaodi-think-pinyin)

PHPackages © 2026

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