PHPackages                             oh86/laravel-sm-beijing-ca - 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. oh86/laravel-sm-beijing-ca

ActiveLibrary

oh86/laravel-sm-beijing-ca
==========================

v1.0.0(1mo ago)04↓100%MITPHP

Since May 6Pushed 1mo agoCompare

[ Source](https://github.com/OneHundred86/laravel-sm-beijing-ca)[ Packagist](https://packagist.org/packages/oh86/laravel-sm-beijing-ca)[ RSS](/packages/oh86-laravel-sm-beijing-ca/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

安装
--

[](#安装)

```
composer require oh86/laravel-sm-beijing-ca
```

一、配置 `config/sm_cryptor.php`
----------------------------

[](#一配置-configsm_cryptorphp)

```
return [
    'driver' => env('SM_CRYPTOR_DRIVER', 'beijingCa'),

    'beijingCa' => [
        'baseUrl' => env('BEIJING_CA_BASEURL'),
        'appId' => env('BEIJING_CA_APPID'),
        'deviceId' => env('BEIJING_CA_DEVICE_ID'),
        'hmacKey' => env('BEIJING_CA_HMAC_KEY'),

        // 主密钥id（生成主密钥的时候不需要配置，待到加解密/哈希运算的时候需要配置）
        'sm4KeyId' => env('BEIJING_CA_SM4_KEY_ID'),
        'hmacKeyId' => env('BEIJING_CA_HMAC_KEY_ID'),
    ],
];
```

二、生成主密钥和配置主密钥
-------------

[](#二生成主密钥和配置主密钥)

```
# 生成主密钥（可用于`sm4KeyId`也可以用于`hmacKeyId`）
php artisan beijingCa:genMainKey
```

配置主密钥（配置`.env`）

```
BEIJING_CA_BASEURL=http://xx.xx.xx.xx:10666
BEIJING_CA_APPID=APP_xxx
BEIJING_CA_DEVICE_ID=DEV_xxx
BEIJING_CA_HMAC_KEY=xxx
# 主密钥
BEIJING_CA_SM4_KEY_ID=xxx
BEIJING_CA_HMAC_KEY_ID=${BEIJING_CA_SM4_KEY_ID}
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance93

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

34d ago

### Community

Maintainers

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

---

Top Contributors

[![OneHundred86](https://avatars.githubusercontent.com/u/22148561?v=4)](https://github.com/OneHundred86 "OneHundred86 (1 commits)")

### Embed Badge

![Health badge](/badges/oh86-laravel-sm-beijing-ca/health.svg)

```
[![Health](https://phpackages.com/badges/oh86-laravel-sm-beijing-ca/health.svg)](https://phpackages.com/packages/oh86-laravel-sm-beijing-ca)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M277](/packages/laravel-horizon)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k77.4k88](/packages/pocketmine-pocketmine-mp)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M16](/packages/directorytree-ldaprecord-laravel)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.1k1](/packages/markocupic-calendar-event-booking-bundle)

PHPackages © 2026

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