PHPackages                             buqiu/invoice - 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. buqiu/invoice

ActiveLibrary

buqiu/invoice
=============

诺诺开放平台

v3.0.5(2y ago)81.9k↓50%4MITPHPPHP &gt;=8.1.0|&gt;=7.3

Since Jun 23Pushed 2y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (4)Versions (24)Used By (0)

invoice
=======

[](#invoice)

desc
----

[](#desc)

诺诺发票开放平台，PHP版本的SDK

安装
--

[](#安装)

```
composer require buqiu/invoice

```

#### 发布配置

[](#发布配置)

如果您希望覆盖存储库和条件所在的路径,请发布配置文件:

```
php artisan vendor:publish
```

然后只需打开 `config/invoice.php` 并编辑即可！

#### 如果你想使用 `Facade`

[](#如果你想使用-facade)

##### 在 `config\app.php` 找到 `providers` 数组，添加刚创建的类

[](#在-configappphp-找到-providers-数组添加刚创建的类)

```
Buqiu\Invoice\InvoiceProvider::class

```

##### 在 `config\app.php` 找到 `aliaes` 数组，添加刚创建的类

[](#在-configappphp-找到-aliaes-数组添加刚创建的类)

```
'InvoiceSdkFacade' =>   Buqiu\Invoice\Facades\InvoiceSdkFacade::class

```

#### 配置文件

[](#配置文件)

```
return [
    // 开放平台appKey
    'app_key' => '',
    // 开放平台appSecret
    'app_secret' => '',
    // 临时授权码
    'code' => '',
    // 授权商户税号
    'tax_num' => '',
    // 授权回调地址
    'redirect_uri' => '',
    // 环境 沙箱环境https://sandbox.nuonuocs.cn/open/v1/services 正式环境https://sdk.nuonuo.com/open/v1/services
    'url' => '',
    // 开票回调地址
    'call_back_url' => '',
    // 销方电话
    'saler_tel' => '',
    // 销方地址
    'saler_address' => '',
    // 销方银行开户行及账号(二手车销售统一发票时必填)
    'saler_account' => '',
    // 复核人
    'checker' => '',
    // 收款人
    'payee' => '',
    // 部门门店id（诺诺系统中的id）
    'department_id' => '',
    // 开票员id
    'clerk_id' => '',
    // 开票员（全电发票时需要传入和开票登录账号对应的开票员姓名）
    'clerk' => '',
    // 是否机动车销售统一发票
    'is_vehicle' => '0',
    // 开具二手车销售统一发票才需要传
    'is_second_hand_car' => '0',
];

```

用法
--

[](#用法)

```
    public function api()
    {
        $invoiceSdk = new InvoiceSDK(config('invoice'));
        $token = $invoiceSdk->getMerchantToken();// 访问令牌
        // API方法名 :
        // nuonuo.ElectronInvoice.requestBillingNew 开具发票
        // nuonuo.ElectronInvoice.queryInvoiceResult 获取发票结果
        $method = "nuonuo.ElectronInvoice.queryInvoiceResult";
        $body = $invoiceSdk->getBody($params,$method); // 获取过滤参数
        $senid = "唯一标识，32位随机码";

        $res = $invoiceSdk->sendPostSyncRequest($senid, $token->access_token, $method, $body);

        return $res;
    }

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~70 days

Total

22

Last Release

985d ago

Major Versions

v1.1.6 → v2.0.02022-11-28

v2.0.3 → v3.0.52023-09-07

PHP version history (4 changes)v1.0.0PHP &gt;=7.0.0

v1.0.4PHP &gt;=7.2.0

v1.1.6PHP &gt;=8.1.0

v3.0.5PHP &gt;=8.1.0|&gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/97229ae0e947eeff418e092a036e90d81654fb9a640281ed22438ec5685bc22b?d=identicon)[buqiu](/maintainers/buqiu)

---

Top Contributors

[![Kevin-csk](https://avatars.githubusercontent.com/u/91361951?v=4)](https://github.com/Kevin-csk "Kevin-csk (26 commits)")[![buqiu](https://avatars.githubusercontent.com/u/7991121?v=4)](https://github.com/buqiu "buqiu (21 commits)")[![smallk1002](https://avatars.githubusercontent.com/u/36835076?v=4)](https://github.com/smallk1002 "smallk1002 (14 commits)")

### Embed Badge

![Health badge](/badges/buqiu-invoice/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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