PHPackages                             songran/gongju - 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. songran/gongju

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

songran/gongju
==============

php 工具箱:包含数据库连接，消息队列，生成二维码，接口安全验证等等

29PHP

Since Mar 15Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

php 工具箱
=======

[](#php-工具箱)

安装方法： /usr/local/php81/bin/php composer.phar require songran/gongju dev-main

composer require songran/gongju dev-main

功能：

1.mysqli，redis，mongodb，数据库链接类

2.消息队列 rdkafka (依赖rdkafka扩展)

3.api 接口安全， 加解密

```
api_verifycation
描述：api接口安全 验证接口 1.实现业务验签 签名秘钥 2.实现防刷 时间戳

api_encryption
RSA密钥生成命令 （后期使用）
1、生成RSA私钥 openssl>genrsa -out rsa_private_key.pem 1024 得到exponent: 65537
2、生成modulus: openssl>rsa -in rsa_private_key.pem -modulus -out rsa_moules.pem
3、生成RSA公钥 openssl>rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
注意：“>”符号后面的才是需要输入的命令。

```

4.阿里云 发送短信 阿里云短信接口

```
1.监测环境依赖

2.发送短信
$params  =array(
	'accessKeyId'		=>'xxx',
	'accessKeySecret'	=>'xxx',
	'SignName'			=>'xxx',
);
$SendSms = new SendSms($params); $res = $SendSms->domesticVcode(手机号,验证码); //发送国内验证码
echo '';
print_r($res);

```

5.生成二维码图片 （验证码）扫码登录使用

6.生成 微信登录二维码

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/26fa41de20dfdc720bbc598f7f9fb69a208442a73d2ab5512b40c210720de47c?d=identicon)[songran](/maintainers/songran)

---

Top Contributors

[![songran](https://avatars.githubusercontent.com/u/13468461?v=4)](https://github.com/songran "songran (53 commits)")

### Embed Badge

![Health badge](/badges/songran-gongju/health.svg)

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

###  Alternatives

[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[trntv/probe

System information provider

33652.4k5](/packages/trntv-probe)[humanmade/wp-flags

Lightweight WordPress plugin to enable exposing feature flags to end-users, based on code-based ( or admin UI in the future ) criteria.

3553.5k](/packages/humanmade-wp-flags)[kanuni/filament-cards

519.0k](/packages/kanuni-filament-cards)[gggeek/ggsysinfo

Allows eZ Publish administrators and developers to have better insight into their working installation

137.8k](/packages/gggeek-ggsysinfo)

PHPackages © 2026

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