PHPackages                             yokuru/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. yokuru/laravel-chatwork

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

yokuru/laravel-chatwork
=======================

Laravel notification driver for Chatwork.

v0.0.1(7y ago)14.7k—3.3%2MITPHPPHP ^7.1

Since Jun 29Pushed 4y agoCompare

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

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

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

[](#laravel-chatwork)

[![Build Status](https://camo.githubusercontent.com/808ad36ae49d6cc05f1cc8d50be2f4943a4dafa7550eb0632a7bc02c353e9139/68747470733a2f2f7472617669732d63692e6f72672f796f6b7572752f6c61726176656c2d63686174776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yokuru/laravel-chatwork)[![Coverage Status](https://camo.githubusercontent.com/efcbf62e126571ae21d8ced455da2582db89496213f0eba89bf36b0495b83f4f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f796f6b7572752f6c61726176656c2d63686174776f726b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/yokuru/laravel-chatwork?branch=master)[![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 yokuru/laravel-chatwork

```

After installing the package, please publish the configuration file.

```
php artisan vendor:publish --provider="Yokuru\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/yokuru/laravel-chatwork/raw/docs/images/sample.png)](https://github.com/yokuru/laravel-chatwork/raw/docs/images/sample.png)

### Mention specific user

[](#mention-specific-user)

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

```

[![to](https://github.com/yokuru/laravel-chatwork/raw/docs/images/to.png)](https://github.com/yokuru/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/yokuru/laravel-chatwork/raw/docs/images/to_all.png)](https://github.com/yokuru/laravel-chatwork/raw/docs/images/to_all.png)

### Simple text

[](#simple-text)

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

```

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

### Information

[](#information)

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

```

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

#### With title

[](#with-title)

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

```

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

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.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

Unknown

Total

1

Last Release

2561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45123e241bd3dc40d728c70fe2af51e18abc99244c2333ed5b04dd9b074fe40f?d=identicon)[yokuru](/maintainers/yokuru)

---

Top Contributors

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

---

Tags

laravelnotificationchatwork

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M17](/packages/laravel-notification-channels-discord)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4079.9M1](/packages/s-ichikawa-laravel-sendgrid-driver)[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)
