PHPackages                             jmiy/captainbi-hyperf - 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. [Framework](/categories/framework)
4. /
5. jmiy/captainbi-hyperf

ActiveLibrary[Framework](/categories/framework)

jmiy/captainbi-hyperf
=====================

026PHP

Since Sep 30Pushed 4y agoCompare

[ Source](https://github.com/Jmiy/bi)[ Packagist](https://packagist.org/packages/jmiy/captainbi-hyperf)[ RSS](/packages/jmiy-captainbi-hyperf/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

CaptainBI Hyperf 公共组件库
======================

[](#captainbi-hyperf-公共组件库)

安装
--

[](#安装)

```
composer require captainbi/hyperf:dev-master
```

发布组件
----

[](#发布组件)

```
php bin/hyperf.php vendor:publish captainbi/hyperf
```

Apollo 组件使用说明
-------------

[](#apollo-组件使用说明)

修改 apollo 配置，通过 `.env` 文件进行配置

```
## 配置文件路径 config/autoload/apollo.php

# 是否开启 apollo
APOLLO_ENABLE=true
# apollo 服务器地址
APOLLO_SERVER=http://127.0.0.1:8080
# apollo appid
APOLLO_APPID=abcdefghijklmn
# 要拉取的 apollo 配置 namespaces，多个使用 英文逗号 , 分隔
APOLLO_NAMESPACES="application,database.json,redis.yml"
```

apollo 组件基于 hyperf 官方的 [config-apollo](https://github.com/hyperf/config-apollo/tree/2.1) 组件进行修改，只支持 2.1 版本，2.2 版本推荐使用 [config-center](https://hyperf.wiki/2.2/#/zh-cn/config-center)

具体区别与使用方式见 内网Wiki [hyperf 2.1 apollo 配置及使用说明](http://wiki.captainbi.com/pages/viewpage.action?pageId=3704233)

重启服务 组件使用说明
-----------

[](#重启服务-组件使用说明)

修改 重启服务 配置，通过 `.env` 文件进行配置

```
## 配置文件路径 config/autoload/restart_console.php

# 热重启启动脚本路径，默认在 bin/restart.php
RESTART_CONSOLE_SCRIPT=
# 热重启等待进程退出超时时间，单位 秒，可选值 3-60，默认 60秒
RESTART_CONSOLE_TIMEOUT=60

# 热重启失败发送警报的钉钉机器人 access token
RESTART_CONSOLE_DD_TOKEN=
# 热重启失败发送警报的钉钉机器人 api secret，安全设置 中使用 '加签' 模式的话，此配置不能为空
RESTART_CONSOLE_DD_SECRET=
# 热重启失败发送警报的钉钉机器人 消息，可使用的占位符见 config/autoload/restart_console.php 说明，可为空
RESTART_CONSOLE_DD_MESSAGE=
```

钉钉机器人详细说明见 [自定义机器人接入](https://developers.dingtalk.com/document/robots/custom-robot-access)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 56.6% 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://avatars.githubusercontent.com/u/72489604?v=4)[Jmiy](/maintainers/Jmiy)[@Jmiy](https://github.com/Jmiy)

---

Top Contributors

[![ahendaxia](https://avatars.githubusercontent.com/u/29669634?v=4)](https://github.com/ahendaxia "ahendaxia (94 commits)")[![Jmiy](https://avatars.githubusercontent.com/u/72489604?v=4)](https://github.com/Jmiy "Jmiy (44 commits)")[![dly209](https://avatars.githubusercontent.com/u/24241459?v=4)](https://github.com/dly209 "dly209 (12 commits)")[![consatan](https://avatars.githubusercontent.com/u/1174105?v=4)](https://github.com/consatan "consatan (9 commits)")[![sam-vip](https://avatars.githubusercontent.com/u/10162137?v=4)](https://github.com/sam-vip "sam-vip (7 commits)")

### Embed Badge

![Health badge](/badges/jmiy-captainbi-hyperf/health.svg)

```
[![Health](https://phpackages.com/badges/jmiy-captainbi-hyperf/health.svg)](https://phpackages.com/packages/jmiy-captainbi-hyperf)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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