PHPackages                             yzw/kabel-sign - 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. yzw/kabel-sign

ActiveLibrary

yzw/kabel-sign
==============

v1.19(4y ago)01351MITPHP

Since Jan 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/goodfeeling/sign)[ Packagist](https://packagist.org/packages/yzw/kabel-sign)[ RSS](/packages/yzw-kabel-sign/feed)WikiDiscussions main Synced today

READMEChangelog (10)DependenciesVersions (27)Used By (1)

安装
--

[](#安装)

1. 下载组件包

```
composer require yzw/kabel-sign

```

2. 发布配置文件

```
php artisan vendor:publish --provider="Kabel\Sign\SignServiceProvider"
kabel_sign.php: sign配置文件

```

3. 配置.env文件

后端使用
----

[](#后端使用)

1.在项目根目录/Kabel/Kernel/HttpKernel.php中绑定 \\Kabel\\Sign\\Middleware\\SignServiceProvider::class 中间件

```
    /**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    protected $routeMiddleware = [
        'auth' => \Kabel\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
        'guest' => \Kabel\Middleware\RedirectIfAuthenticated::class,
        'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
        // 验证签名
        'verify.sign' => \Kabel\Sign\Middleware\SignMiddleware::class,
    ];
```

2.路由绑定中间件

```
    Route::middleware('verify.sign')->group(function () {
        //需要登录的路由组
    });
```

3.请求外部项目的接口时引入Kabel\\Sign\\Services\\SignService

```
    use Kabel\Sign\Services\SignService;
    use Kabel\Interfaces\RpcRequestInterface;
    class test
    {

        /**
         * RPC请求类
         * @var RpcRequestInterface
         */
        protected RpcRequestInterface $request;

        public function __construct(RpcRequestInterface $request)
        {
            $this->request = $request;
        }

        public function test()
        {
           // 发送请求
           $params = ["user_id":1001,"company_id":2];
           $this->request->setApiName($apiName)->uploadFile($apiUri, $fileParams, SignService::setParams($params));
        }
    }
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

26

Last Release

1524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e807d115f9810d8617c3d83ee63473721f1bcb2c27ea049377b42c6c25bfce7?d=identicon)[goodfeeling](/maintainers/goodfeeling)

---

Top Contributors

[![goodfeeling](https://avatars.githubusercontent.com/u/36871217?v=4)](https://github.com/goodfeeling "goodfeeling (32 commits)")

### Embed Badge

![Health badge](/badges/yzw-kabel-sign/health.svg)

```
[![Health](https://phpackages.com/badges/yzw-kabel-sign/health.svg)](https://phpackages.com/packages/yzw-kabel-sign)
```

PHPackages © 2026

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