PHPackages                             superzc/qqminiprogram - 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. superzc/qqminiprogram

ActiveProject

superzc/qqminiprogram
=====================

1.0.0(2y ago)07MITPHP

Since Dec 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/supermanzcj/qqminiprogram)[ Packagist](https://packagist.org/packages/superzc/qqminiprogram)[ RSS](/packages/superzc-qqminiprogram/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

QQMiniProgram Extension Pack
============================

[](#qqminiprogram-extension-pack)

[![Latest Version on Packagist](https://camo.githubusercontent.com/419df4226fb7877cf5291e6a3cb81ae6e21fbfcdee2589de365b0cef1fe4b7de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757065727a632f71716d696e6970726f6772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/superzc/qqminiprogram)[![Release Version](https://camo.githubusercontent.com/ebefafefbf46967c45dcd8f9c796dede74713ac4ae39a0e22bd2f48ea44857d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d312e302e302d7265642e737667)](https://github.com/supermanzcj/qqminiprogram/releases)

This package provides additional features to the Laravel framework.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require superzc/qqminiprogram
```

Usage
-----

[](#usage)

修改小程序配置文件`config/miniprogram.php`

```
return [
    'qq' => [
        'appid' => 'xxx',
        'appsecret' => 'xxx',
    ],
];
```

调用类方法

```
use Superzc\QQMiniprogram\QQMiniprogram;
use Superzc\QQMiniprogram\Exceptions\DefaultException as QQMPDefaultException;

try {
    $qqminiprogram = new QQMiniprogram();

    // 如果需要登录调用凭据，先获取access_token（有效期2小时，建议缓存，避免重复刷新），再设置access_token
    $access_token = $qqminiprogram->getAccessToken();
    $qqminiprogram->setAccessToken($access_token);

    $result = $qqminiprogram->doSomething();
} catch (QQMPDefaultException $e) {
    return response()->json([
        'ret' => $e->getCode(),
        'msg' => $e->getMessage(),
    ]);
}
```

使用门面

```
use Superzc\QQMiniprogram\Facades\QQMiniprogram;

try {
    // 如果需要登录调用凭据，先获取access_token（有效期2小时，建议缓存，避免重复刷新），再设置access_token
    $access_token = QQMiniprogram::getAccessToken();
    QQMiniprogram::setAccessToken($access_token);

    $result = QQMiniprogram::doSomething();
} catch (QQMPDefaultException $e) {
    return response()->json([
        'ret' => $e->getCode(),
        'msg' => $e->getMessage(),
    ]);
}
```

Change log
----------

[](#change-log)

暂无

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

881d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3904420e360fecb9afaf012a666c9aa8a545bd43369eb1a4b07e9936c509fbe7?d=identicon)[supermanzcj](/maintainers/supermanzcj)

---

Top Contributors

[![supermanzcj](https://avatars.githubusercontent.com/u/1559675?v=4)](https://github.com/supermanzcj "supermanzcj (10 commits)")

### Embed Badge

![Health badge](/badges/superzc-qqminiprogram/health.svg)

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

PHPackages © 2026

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