PHPackages                             yajianguo/lark-notification-channel - 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. yajianguo/lark-notification-channel

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

yajianguo/lark-notification-channel
===================================

Lark Notifications driver

v1.0.0(4y ago)126MITPHPPHP ^7.2.5 || ^8.0

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yajianguo/lark-notification-channel)[ Packagist](https://packagist.org/packages/yajianguo/lark-notification-channel)[ Docs](https://github.com/yajianguo/lark-notification-channel)[ RSS](/packages/yajianguo-lark-notification-channel/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

Lark notifications channel for Laravel
======================================

[](#lark-notifications-channel-for-laravel)

This package makes it easy to send Lark using the Laravel notification system. Supports 5.5+, 6.x, 7.x and 8.x.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require yajianguo/lark-notification-channel
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\Lark\LarkChannel;
use NotificationChannels\Lark\LarkMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [LarkChannel::class];
    }

    public function toLark($notifiable)
    {
        return LarkMessage::create()
            ->url('https://open.feishu.cn/open-apis/bot/v2/hook/selfPath')
            ->data([
               'payload' => [
                   'lark' => 'data'
               ]
            ])
            ->userAgent("Custom-User-Agent")
            ->header('X-Custom', 'Custom-Header');
    }
}
```

In order to let your Notification know which URL should receive the Lark data, add the `routeNotificationForLark` method to your Notifiable model.

Url or Model POST request.

```
public function routeNotificationForLark()
{
    return 'http://requestb.in/1234x';
}
```

### Available methods

[](#available-methods)

- `url('')`: Accepts a string value for the Lark url.
- `data('')`: Accepts a JSON-encodable value for the Lark body.
- `query('')`: Accepts an associative array of query string values to add to the request.
- `userAgent('')`: Accepts a string value for the Lark user agent.
- `header($name, $value)`: Sets additional headers to send with the POST Lark.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [yajianguo Pociot](https://github.com/yajianguo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

1653d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b83182540c4469202c28c4d400f8620a635acbb883170ec951aa5bfd444e0203?d=identicon)[yajianguo](/maintainers/yajianguo)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yajianguo-lark-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/yajianguo-lark-notification-channel/health.svg)](https://phpackages.com/packages/yajianguo-lark-notification-channel)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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