PHPackages                             oywenjiao/php-tool-kit - 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. [Image &amp; Media](/categories/media)
4. /
5. oywenjiao/php-tool-kit

ActiveLibrary[Image &amp; Media](/categories/media)

oywenjiao/php-tool-kit
======================

集成常用工具类

1.3.0(4y ago)12MITPHPPHP &gt;=5.6

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/oywenjiao/php-tool-kit)[ Packagist](https://packagist.org/packages/oywenjiao/php-tool-kit)[ Docs](https://github.com/oywenjiao/php-tool-kit)[ RSS](/packages/oywenjiao-php-tool-kit/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

php-tool-kit
============

[](#php-tool-kit)

PHP工具箱

安装
--

[](#安装)

> composer require oywenjiao/php-tool-kit

文件目录说明
------

[](#文件目录说明)

- Express 快递工具箱

    - Baidu 百度快递查询接口

        - 使用示例
            ----

            [](#使用示例)

        ```
            $obj = new Baidu();
            $response = $obj->query('YT123456', '圆通速递');
        ```
    - BirdLogistics 快递鸟查询接口

        - 使用示例
            ----

            [](#使用示例-1)

        ```
            $appKey = 'your app_key';   // 快递鸟账号密钥
            $businessId = 'your businessId';    // 快递鸟账号id
            $obj = new BirdLogistics($appKey, $businessId);
            $trade_sn = '123456';   // 商户订单号
            $ship_code  = 'YTO';    // 快递公司编码
            $ship_sn    = '123456'; // 快递单号
            $response = $obj->getOrderTracesByJson($trade_sn, $ship_code, $ship_sn);
        ```
- Wechat 微信生态

    - WxBase 微信操作公共类，所有的微信相关api基于该公共类的基础上进行调用

        - 示例
            --

            [](#示例)

        ```
            $appId = 'your appid';  // 公众号appid
            $appSecret = 'your appSecret';  // 公众号app_secret
            $base = new WxBase($appId, $appSecret);
        ```
    - Order 微信订单操作类

        - 示例
            --

            [](#示例-1)

        ```
            $wx_order = new Order($base);
            $mchId = "your mch_id";     // 商户号id
            $key = "your key";  // 商户密钥
            $wx_order->setMchID($mchId)->setKey($key);  // 设置密钥和商户号

            // 调用统一下单接口
            $openid = 'your openid';    // 用户openid
            $trade_sn = 'your trade_sn';    // 商户订单号
            $price = '1.00';    // 订单价格
            $notify = 'your notify';    // 回调地址
            $res = $wx_order->unifiedOrder($openid, $trade_sn, $price, $notify);

            // 调用企业付款
            $wx_order = new Order($base);
            $cert = 'your cert';    // cert 证书路径
            $ssl_key = 'your ssl_key';  // ssl_key 证书路径
            $openid = 'your openid';    // 用户openid
            $trade_sn = 'your trade_sn';    // 商户订单号
            $price = '1.00';    // 提现金额
            $desc = '提现描述';
            $wx_order->setMchID($mchId)->setKey($key)->setCert($cert)->setSslKey($ssl_key);
            $res = $wx_order->payToUser($openid, $trade_sn, $price, $desc);
        ```
    - TemplateMessage 微信消息操作类

        - 示例
            --

            [](#示例-2)

        ```
            $message = new TemplateMessage($base);
            $openid = 'user openid';    // 接收消息的用户openid
            $template_id = 'your template_id';  // 消息模板id
            $params = [];   // 消息模板需传递的参数数组
            $page = 'your xcx page url';    // 消息跳转地址
            $result = $message->sendXcxMessage($openid, $template_id, $params, $page);
        ```
- Kind 工具类集合

    - AuthManage 权限相关的类

        - JwtManage jwt验证类
            - 示例
                --

                [](#示例-3)

            ```
                $publicKey = 'your public_key'; // 公钥
                $privateKey = 'your private_key';   // 私钥
                $jwt = new JwtManage($publicKey, $privateKey);
                // 加密
                $payload = array('user_id' => 1234, 'expire' => time() + 100);
                $token = $jwt->encode($payload);
                // 解密
                $result = $jwt->decode($token);
            ```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

5

Last Release

1811d ago

### Community

Maintainers

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

---

Top Contributors

[![oywenjiao](https://avatars.githubusercontent.com/u/13310863?v=4)](https://github.com/oywenjiao "oywenjiao (11 commits)")

---

Tags

imagetoolexpressbaiduWXoywenjiao

### Embed Badge

![Health badge](/badges/oywenjiao-php-tool-kit/health.svg)

```
[![Health](https://phpackages.com/badges/oywenjiao-php-tool-kit/health.svg)](https://phpackages.com/packages/oywenjiao-php-tool-kit)
```

###  Alternatives

[opentok/opentok

OpenTok is a platform for creating real time streaming video applications, created by TokBox.

1413.0M10](/packages/opentok-opentok)[folklore/image

Image manipulation library for Laravel 5 based on Imagine and inspired by Croppa for easy url based manipulation

270248.2k5](/packages/folklore-image)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[urlbox/screenshots

Use urlbox to easily generate website thumbnail screenshots from a URL

14250.4k](/packages/urlbox-screenshots)[daun/statamic-placeholders

Generate low-quality image placeholders for lazyloading Statamic assets

106.6k](/packages/daun-statamic-placeholders)[daun/statamic-mux

Seamless video encoding and streaming using Mux on Statamic sites

132.3k](/packages/daun-statamic-mux)

PHPackages © 2026

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