PHPackages                             techinasia/laravel-stream-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. techinasia/laravel-stream-notification-channel

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

techinasia/laravel-stream-notification-channel
==============================================

Stream Notifications Channel for Laravel 5.3

v1.0.0(9y ago)17MITPHPPHP &gt;=5.6.4

Since Feb 8Pushed 7y ago14 watchersCompare

[ Source](https://github.com/techinasia/laravel-stream-notification-channel)[ Packagist](https://packagist.org/packages/techinasia/laravel-stream-notification-channel)[ Docs](https://github.com/techinasia/laravel-stream-notification-channel)[ RSS](/packages/techinasia-laravel-stream-notification-channel/feed)WikiDiscussions master Synced yesterday

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

Stream Notification Channel for Laravel
=======================================

[](#stream-notification-channel-for-laravel)

[![Dependency Status](https://camo.githubusercontent.com/8f294d6a5d0a52bbcd6a421e4913b3df9f7b1980860a5cdaa406717686a6298c/68747470733a2f2f67656d6e617369756d2e636f6d2f74656368696e617369612f6c61726176656c2d73747265616d2d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://gemnasium.com/techinasia/laravel-stream-notification-channel)[![Build Status](https://camo.githubusercontent.com/39c4d33911ade2c7fa4d20d571615027b88b271c649f453446547f2ac998c50d/68747470733a2f2f7472617669732d63692e6f72672f74656368696e617369612f6c61726176656c2d73747265616d2d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://travis-ci.org/techinasia/laravel-stream-notification-channel)[![Coverage Status](https://camo.githubusercontent.com/d761eb5259776ca6119301a3c3f10fbed55ba7790c5a82a4cbea1888867551b6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74656368696e617369612f6c61726176656c2d73747265616d2d6e6f74696669636174696f6e2d6368616e6e656c2f62616467652e737667)](https://coveralls.io/github/techinasia/laravel-stream-notification-channel)[![StyleCI Status](https://camo.githubusercontent.com/132b00becb2a0fd871b29d1f6ad551c7bce33f42a590b568526dbd87146f22e3/68747470733a2f2f7374796c6563692e696f2f7265706f732f37353831393539392f736869656c64)](https://styleci.io/repos/75819599)

> Use Laravel 5.3 notifications to send activities to Stream.

Contents
--------

[](#contents)

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

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

[](#installation)

Install this package with Composer:

```
composer require techinasia/laravel-stream-notification-channel-notification-channel
```

Register the service provider in your `config/app.php`:

```
NotificationChannels\GetStream\StreamServiceProvider::class
```

### Setting up Stream

[](#setting-up-stream)

This notification channel uses [techinasia/laravel-stream](https://github.com/techinasia/laravel-stream) to send notifications to Stream.

Publish all the vendor assets:

```
php artisan vendor:publish
```

This will create a file called `stream.php` in the `config` folder. Create an application via [Stream's](https://getstream.io) admin interface and copy the API key and secret to the configuration file.

You can add more applications by adding more key/secret pairs to the configuration file:

```
'applications' => [
    'main' => [
        'key' => 'key1',
        'secret' => 'secret1',
    ],
    'foo' => [
        'key' => 'foo',
        'secret' => 'bar',
    ],
],
```

Usage
-----

[](#usage)

Send notifications via Stream in your notification:

```
use NotificationChannels\GetStream\StreamChannel;
use NotificationChannels\GetStream\StreamMessage;
use Illuminate\Notifications\Notification;

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

    public function toStream($notifiable)
    {
        return (new StreamMessage())
            ->actor(1)
            ->verb('like')
            ->object(3)
            ->foreignId('post:42');
    }
}
```

You need to specify the ID and type of the notifiable by defining a `routeNotificationForStream` method on the entity:

```
/**
 * Notification routing information for Stream.
 *
 * @return array
 */
public function routeNotificationForStream()
{
    return [
        'type' => 'user',
        'id' => $this->id,
    ];
}
```

### Available Message methods

[](#available-message-methods)

- `application(string $application)`: Sets the application to be used to send the notification.

You can set any attributes of the payload by calling the name of the attribute in camel case with the value as the parameter:

```
return (new StreamMessage())
    ->actor(1)
    ->verb('like')
    ->object(3);
```

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3430d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7744651?v=4)[Tech in Asia](/maintainers/techinasia)[@techinasia](https://github.com/techinasia)

---

Top Contributors

[![zyml](https://avatars.githubusercontent.com/u/1495648?v=4)](https://github.com/zyml "zyml (15 commits)")

---

Tags

getstreamlaravelphpstreamlaravelnotificationschannel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M284](/packages/laravel-horizon)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M14](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

282788.6k1](/packages/laravel-notification-channels-pusher-push-notifications)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.1M15](/packages/laravel-notification-channels-twilio)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 9, 10, 11, 12, 13

1176.4k](/packages/salamwaddah-laravel-mandrill-driver)

PHPackages © 2026

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