PHPackages                             superzc/miniprogram - 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/miniprogram

ActiveProject

superzc/miniprogram
===================

1.0.1(2y ago)151MITPHP

Since Dec 12Pushed 2y ago1 watchersCompare

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

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

MiniProgram Extension Pack
==========================

[](#miniprogram-extension-pack)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6abcd3b95dff7fa1b5ca3fc261d21323d46a54c6ce78072e5b9e8b706ca52ab2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757065727a632f6d696e6970726f6772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/superzc/miniprogram)[![Release Version](https://camo.githubusercontent.com/acee7c2e8cf0e580c04fe055b5a07c100174e6ccacb917f06e03ca5c93905ec7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d312e302e312d7265642e737667)](https://github.com/supermanzcj/miniprogram/releases)

This package provides additional features to the Laravel framework.

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

[](#installation)

You can install the package via composer:

```
composer require superzc/miniprogram
```

Usage
-----

[](#usage)

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

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

调用类方法

```
use Superzc\Miniprogram\Miniprogram;
use Superzc\Miniprogram\Exceptions\DefaultException as MPDefaultException;

try {
    $miniprogram = new Miniprogram();
    $result = $miniprogram->doSomething();
} catch (MPDefaultException $e) {
    return response()->json([
        'ret' => $e->getCode(),
        'msg' => $e->getMessage(),
    ]);
}
```

使用门面

```
use Superzc\Miniprogram\Facades\Miniprogram;

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

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

[](#change-log)

暂无

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

886d 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 (32 commits)")

### Embed Badge

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

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

PHPackages © 2026

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