PHPackages                             a-yasui/laravel-chatwork - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. a-yasui/laravel-chatwork

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

a-yasui/laravel-chatwork
========================

Laravel notification driver for Chatwork.

v1.0.3(3mo ago)0110[1 issues](https://github.com/a-yasui/laravel-chatwork/issues)MITPHPPHP ^8.0CI passing

Since Jun 29Pushed 3mo agoCompare

[ Source](https://github.com/a-yasui/laravel-chatwork)[ Packagist](https://packagist.org/packages/a-yasui/laravel-chatwork)[ RSS](/packages/a-yasui-laravel-chatwork/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (14)Versions (7)Used By (0)

Laravel Chatwork
================

[](#laravel-chatwork)

[![MIT License](https://camo.githubusercontent.com/db79b92834d905629b1aea42c9aa493da02060189e2af90840b1be5d6bf6ddf7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)

[Laravel Notification](https://laravel.com/docs/notifications) driver for Chatwork.

Installation
------------

[](#installation)

With [Composer](https://getcomposer.org/):

```
composer require a-yasui/laravel-chatwork

```

After installing the package, please publish the configuration file.

```
php artisan vendor:publish --provider="ATYasu\Chatwork\ServiceProvider"

```

Usage
-----

[](#usage)

### 1. Set the Chatwork API Token

[](#1-set-the-chatwork-api-token)

Open `.env` and set your Chatwork API Token like as below.

```
CHATWORK_API_TOKEN=XXXXXXXXXXXXXXXXXX

```

### 2. Create an notification class

[](#2-create-an-notification-class)

Create a notification class like as below.

```
class SampleNotification extends ChatworkNotification
{
    function toChatwork($notifiable): ChatworkMessage
    {
        return (new ChatworkMessage())
            ->text('This is sample notification');
    }
}

```

### 3. Sending notification

[](#3-sending-notification)

Here are some examples of notification methods.
Please refer to the following page if you want to know more about Laravel Notification.

#### Example of On-Demand Notifications

[](#example-of-on-demand-notifications)

```
Notification::route('chatwork', '{ROOM_ID}')
    ->notify(new SampleNotification());

```

#### Example of using Notifiable trait

[](#example-of-using-notifiable-trait)

Add the method `routeNotificationForChatwork` to your model using Notifiable.

```
class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForChatwork()
    {
        return '{ROOM_ID}';
    }
}

```

Next, just notify when you want.

```
$user->notify(new SampleNotification());

```

Building message
----------------

[](#building-message)

You can create a chat message as below.

```
$message = new SampleNotification();
$message->to('999999')
    ->info("Please confirm this.\nhttp://example.com/", 'New Order #7489393')
    ->toAll()
    ->text('FYI');

```

[![sample](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/sample.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/sample.png)

### Mention specific user

[](#mention-specific-user)

```
$message->to('999999');

```

[![to](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/to.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/to.png)

### Mention all users in the room

[](#mention-all-users-in-the-room)

```
$message->toAll();

```

[![toall](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/to_all.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/to_all.png)

### Simple text

[](#simple-text)

```
$message->text('This is simple text message.');

```

[![text](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/text.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/text.png)

### Information

[](#information)

```
$message->info('This is information.');

```

[![info](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/info.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/info.png)

#### With title

[](#with-title)

```
$message->info('This is information.', 'Information title');

```

[![info_with_title](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/info_with_title.png)](https://github.com/a-yasui/laravel-chatwork/raw/docs/images/info_with_title.png)

License
-------

[](#license)

MIT

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance81

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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 ~615 days

Total

5

Last Release

101d ago

Major Versions

v0.0.1 → v1.0.02025-11-12

PHP version history (2 changes)v0.0.1PHP ^7.1

v1.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ff230b3e826191778402b1006b5a9ae31f5967b373e74c861789faba22368b3?d=identicon)[a-yasui](/maintainers/a-yasui)

---

Top Contributors

[![a-yasui](https://avatars.githubusercontent.com/u/94186?v=4)](https://github.com/a-yasui "a-yasui (25 commits)")[![yokuru](https://avatars.githubusercontent.com/u/26265585?v=4)](https://github.com/yokuru "yokuru (11 commits)")

---

Tags

laravelnotificationchatwork

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/a-yasui-laravel-chatwork/health.svg)

```
[![Health](https://phpackages.com/badges/a-yasui-laravel-chatwork/health.svg)](https://phpackages.com/packages/a-yasui-laravel-chatwork)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.8M47](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M17](/packages/laravel-notification-channels-discord)[laravel-notification-channels/expo

Expo Notifications Channel for Laravel

67628.6k1](/packages/laravel-notification-channels-expo)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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