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

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

mkohei/laravel-td-notification-channel
======================================

Treasure Data Notification Channel for Laravel

v2.0.0(3y ago)116.0k2MITPHPPHP ^8.1

Since Mar 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mkohei/laravel-td-notification-channel)[ Packagist](https://packagist.org/packages/mkohei/laravel-td-notification-channel)[ RSS](/packages/mkohei-laravel-td-notification-channel/feed)WikiDiscussions 2.x Synced today

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

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

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

[![tests](https://github.com/mkohei/laravel-td-notification-channel/actions/workflows/tests.yml/badge.svg)](https://github.com/mkohei/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 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 mkohei/laravel-td-notification-channel

```

Usage
-----

[](#usage)

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

```
use Mkohei\LaravelTdNotificationChannel\TreasureDataChannel;
use Mkohei\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 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

1169d ago

Major Versions

v0.1.0-alpha → v1.0.02022-03-04

1.x-dev → 2.x-dev2023-04-20

PHP version history (2 changes)v0.1.0-alphaPHP ^8.0

2.x-devPHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![mkohei](https://avatars.githubusercontent.com/u/18568863?v=4)](https://github.com/mkohei "mkohei (8 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M161](/packages/spatie-laravel-health)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[s-ichikawa/laravel-sendgrid-driver

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

4079.9M1](/packages/s-ichikawa-laravel-sendgrid-driver)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)

PHPackages © 2026

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