PHPackages                             quhang/bearychat - 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. quhang/bearychat

ActiveLibrary[API Development](/categories/api)

quhang/bearychat
================

bearychat robot message api

0.0.5(8y ago)1411MITPHP

Since Feb 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zm-john/bearychat)[ Packagist](https://packagist.org/packages/quhang/bearychat)[ RSS](/packages/quhang-bearychat/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

bearychat
=========

[](#bearychat)

bearychat robot message api

Install
-------

[](#install)

```
composer require quhang/bearychat

```

Usage
-----

[](#usage)

```
$message = new \Quhang\BearyChat\Message($webhook);

$attachment = new \Quhang\BearyChat\Attachment([
    'title' => 'title_1',
    'url' => 'https://bearychat.com',
    'text' => 'attachment_text',
    'color' => '#ffa500',
    'images' => ['url' => 'http://img3.douban.com/icon/ul15067564-30.jpg'],
]);

# or
# $attachment = new \Quhang\BearyChat\Attachment();
# $attachment->title('title_1')
#    ->url('https://bearychat.com')
#    ->text('attachment_text')
#    ->color('#ffa500')
#    ->image('http://img3.douban.com/icon/ul15067564-30.jpg');

$message->send();

```

Laravel
-------

[](#laravel)

### laravel 5.5+

[](#laravel-55)

1. you can publish config, then set your webhook in .env `BEARYCHAT_WEBHOOK`. This is unnecessary.

```
php artisan vendor:publish

```

2. 使用 `BearyChat` to send message. `BearyChat` is a `\Quhang\BearyChat\Message` instance.

```
\Quhang\BearyChat\BearyChat::text('hello')->send()

```

### laravel 5.1 ~ 5.4

[](#laravel-51--54)

1. if you want to config your webhook, you need add `Quhang\BearyChat\LaravelServiceProvider` to `config/app.php`

```
'providers' => [
    // ...
    Quhang\BearyChat\LaravelServiceProvider::class,
    // ...
]

```

2. if you want to use Facade, you need add `Quhang\BearyChat\BearyChat` to `config/app.php`

```
'aliases' => [
    // ...
    'BearyChat' => Quhang\BearyChat\BearyChat::class,
    // ...
]

```

Methods
-------

[](#methods)

```
function text(string $text); # set text
function notification(bool $need = true); # notification control
function markdown(bool $need = true); # markdown control
function channel(string $name); # set channel name
function to(string $username); # send to someone
function attachment(Attachment $attach); # append a attachment
function appendAttachment(Attachment $attach); # alias attachment
function webhook($webhook); # set webhook url
function send(bool $need = true); # send

```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

3041d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3333203?v=4)[quhang](/maintainers/quhang)[@quhang](https://github.com/quhang)

---

Top Contributors

[![zm-john](https://avatars.githubusercontent.com/u/16522311?v=4)](https://github.com/zm-john "zm-john (1 commits)")

---

Tags

laravelbearychat

### Embed Badge

![Health badge](/badges/quhang-bearychat/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M916](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[flat3/lodata

OData v4.01 Producer for Laravel

99346.1k](/packages/flat3-lodata)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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