PHPackages                             quanle/laravel-td-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. quanle/laravel-td-notification-channel

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

quanle/laravel-td-notification-channel
======================================

Treasure Data Notification Channel for Laravel

1.0.1(1y ago)1521MITPHPPHP ^8.2CI passing

Since Mar 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/legiaquan/laravel-td-notification-channel)[ Packagist](https://packagist.org/packages/quanle/laravel-td-notification-channel)[ RSS](/packages/quanle-laravel-td-notification-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Treasure Data notifications channel for Laravel
===============================================

[](#treasure-data-notifications-channel-for-laravel)

[![tests](https://github.com/quanle/laravel-td-notification-channel/actions/workflows/tests.yml/badge.svg)](https://github.com/quanle/laravel-td-notification-channel/actions/workflows/tests.yml)[![StyleCI](https://camo.githubusercontent.com/3657dc1b381aed84a24a55845a44701085ab7a861231c165de1fe6ffde5dce66/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3436353736303239362f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/465760296?branch=main)

This package fork from [mkohei/laravel-td-notification-channel](https://github.com/mkohei/laravel-td-notification-channel)

This package makes it easy to send [Treasure Data](https://www.treasuredata.com/) using the Laravel notification system and the [Treasure Data Postback API](https://docs.treasuredata.com/display/public/PD/Postback+API).

Contents
--------

[](#contents)

- [Contents](#contents)
- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [License](#license)

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

[](#installation)

```
composer require quanle/laravel-td-notification-channel

```

Usage
-----

[](#usage)

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

```
use QuanLe\LaravelTdNotificationChannel\TreasureDataChannel;
use QuanLe\LaravelTdNotificationChannel\TreasureDataMessage;
use Illuminate\Notifications\Notification;

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

    public function toTreasureData($notifiable)
    {
        return TreasureDataMessage::create()
            ->data([
               'param1' => 'value',
               'param2' => 1234,
            ])
            ->apikey('YOUR_WRITE_ONLY_KEY')
            ->database('your_db')
            ->table('your_table');
    }
}
```

To store notifications in the appropriate regions, databases, and tables, define a `routeNotificationForTreasureData` method on your notifiable entity. This should return [the Postback API endpoint for your region](https://docs.treasuredata.com/display/public/PD/Sites+and+Endpoints).

```
public function routeNotificationForTreasureData()
{
    return 'https://in.treasuredata.com';
}
```

Testing
-------

[](#testing)

```
composer test

```

License
-------

[](#license)

[MIT License](./LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance45

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/820ac4a184aa84c35138f81216800a6a2960ad0154c25be5d6ab715febec1f0e?d=identicon)[quanlg-kit](/maintainers/quanlg-kit)

---

Top Contributors

[![legiaquan](https://avatars.githubusercontent.com/u/33570466?v=4)](https://github.com/legiaquan "legiaquan (3 commits)")[![quanlg-kit](https://avatars.githubusercontent.com/u/185021847?v=4)](https://github.com/quanlg-kit "quanlg-kit (3 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/quanle-laravel-td-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/quanle-laravel-td-notification-channel/health.svg)](https://phpackages.com/packages/quanle-laravel-td-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)
