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. qbhy/mirai

AbandonedArchivedLibrary

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 1mo ago

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 54% 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

2116d ago

Major Versions

v0.0.2 → v1.02020-07-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0e15ef096c1cef56717d13b05333600e4fb13d2c91ddd0aaffb9a550f2543d3?d=identicon)[qbhy](/maintainers/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

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

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

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

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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