PHPackages                             qbhy/mirai - 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. [API Development](/categories/api)
4. /
5. qbhy/mirai

AbandonedArchivedLibrary[API Development](/categories/api)

qbhy/mirai
==========

v1.0.1(5y ago)2203PHP

Since Jul 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/qbhy/mirai-php)[ Packagist](https://packagist.org/packages/qbhy/mirai)[ RSS](/packages/qbhy-mirai/feed)WikiDiscussions master Synced today

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

qbhy/mirai-php
==============

[](#qbhymirai-php)

mirai http api 的 PHP sdk.

> 暂未封装 websocket 相关接口

安装 - install
------------

[](#安装---install)

```
$ composer require qbhy/mirai
```

使用 - usage
----------

[](#使用---usage)

```
$bot = new \Qbhy\Mirai\Bot([
    'debug' => true,

    'host' => 'http://localhost:8000',

    'auth_key' => 'your auth key',
]);

$bot->auth; // 授权相关接口
$bot->plugin; // 插件相关接口
$bot->manager; // 管理相关接口
$bot->message; // 消息相关接口

// 给指定还有发送文本消息
$bot->message->sendFriendMessage(572490755, [
    \Qbhy\Mirai\Util\MessageUtil::plain('文本消息'),
]);
```

[mirai-php](https://github.com/qbhy/mirai-php)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

2162d ago

Major Versions

v0.0.2 → v1.02020-07-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24204533?v=4)[桥边红药](/maintainers/qbhy)[@qbhy](https://github.com/qbhy)

---

Top Contributors

[![qbhy](https://avatars.githubusercontent.com/u/24204533?v=4)](https://github.com/qbhy "qbhy (21 commits)")

### Embed Badge

![Health badge](/badges/qbhy-mirai/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M971](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k420.9k26](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4072.9M25](/packages/temporal-sdk)[pimcore/data-hub

Pimcore Datahub

1361.4M12](/packages/pimcore-data-hub)[icawebdesign/hibp-php

PHP library for accessing the Have I Been Pwned API.

2549.8k2](/packages/icawebdesign-hibp-php)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1223.7k](/packages/codebar-ag-laravel-docuware)

PHPackages © 2026

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