PHPackages                             pippa/notification-sdk-laravel - 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. pippa/notification-sdk-laravel

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

pippa/notification-sdk-laravel
==============================

Notification Service SDK for Laravel — Guzzle, ServiceProvider, Facade

v1.1.4(1mo ago)042MITPHPPHP ^8.1CI passing

Since May 6Pushed 1mo agoCompare

[ Source](https://github.com/rajoni-pippa/pippa-notification-service-laravel-sdk)[ Packagist](https://packagist.org/packages/pippa/notification-sdk-laravel)[ RSS](/packages/pippa-notification-sdk-laravel/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (15)Versions (9)Used By (0)

Notification SDK — Laravel
==========================

[](#notification-sdk--laravel)

Laravel SDK for the **Notification Service** API.
Requires **Guzzle** — includes ServiceProvider, Facade, and DI support.

---

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

[](#installation)

```
composer require pippa/notification-sdk-laravel
```

Laravel will auto-discover the service provider and facade.

---

Configuration
-------------

[](#configuration)

Publish config:

```
php artisan vendor:publish --tag=notification-config
```

Add to `.env`:

```
NOTIFICATION_API_KEY=your_api_key
NOTIFICATION_SECRET_KEY=your_secret_key
```

---

Usage — Facade
--------------

[](#usage--facade)

```
use Pippa\NotificationSdkLaravel\Facades\NotificationService;

// Send Email
$response = NotificationService::sendEmail(
    email:    'user@example.com',
    template: 'welcome_email',
    data:     ['name' => 'Rahim']
);

// Send SMS
$response = NotificationService::sendSms(
    phone:    '+8801700000000',
    template: 'otp_sms',
    data:     ['otp' => '1234']
);

// Send WhatsApp
$response = NotificationService::sendWhatsapp(
    whatsapp: '+8801700000000',
    template: 'whatsapp_template',
    data:     ['name' => 'Rahim']
);

// Send Push Notification
$response = NotificationService::sendPush(
    push:     'device_token_or_user_id',
    template: 'push_template',
    data:     ['title' => 'Hello!', 'body' => 'You have a new message.']
);

// Send In-App
$response = NotificationService::sendInApp(
    userId:   'user_123',
    template: 'order_update',
    data:     ['order_id' => 'ORD-456', 'status' => 'Shipped']
);

// Send Slack
$response = NotificationService::sendSlack(
    slack:    '#general',
    template: 'slack_alert',
    data:     ['message' => 'Deployment successful!']
);

// Send Discord
$response = NotificationService::sendDiscord(
    discord:  'channel_id_or_webhook',
    template: 'discord_alert',
    data:     ['message' => 'New order received!']
);
```

### Multi-channel (Courier-style)

[](#multi-channel-courier-style)

```
use Pippa\NotificationSdkLaravel\Facades\NotificationService;
use Pippa\NotificationSdkLaravel\Requests\SendMessageRequest;
use Pippa\NotificationSdkLaravel\DTOs\TemplateMessage;
use Pippa\NotificationSdkLaravel\DTOs\Recipient;

$response = NotificationService::send(
    new SendMessageRequest([
        'message' => new TemplateMessage([
            'to' => [
                Recipient::email('user@example.com'),
                Recipient::phone('+8801700000000'),
                Recipient::userId('user_123'),
                Recipient::whatsapp('+8801747436390'),
                Recipient::push('device_token'),
                Recipient::slack('#general'),
                Recipient::discord('channel_id'),
            ],
            'template' => 'welcome_notification',
            'data'     => ['name' => 'Rahim'],
        ]),
    ])
);

echo $response->getRequestId();
```

### Restrict a recipient to specific channels

[](#restrict-a-recipient-to-specific-channels)

```
Recipient::make([
    'email'   => 'user@example.com',
    'phone'   => '+8801700000000',
    'user_id' => 'user_123',
])->only(['email', 'sms'])
```

---

Usage — Dependency Injection
----------------------------

[](#usage--dependency-injection)

```
use Pippa\NotificationSdkLaravel\NotificationClient;

class OrderService
{
    public function __construct(protected NotificationClient $notification) {}

    public function notifyShipped(string $email, string $orderId): void
    {
        $this->notification->sendEmail(
            email:    $email,
            template: 'order_shipped',
            data:     ['order_id' => $orderId]
        );
    }
}
```

---

Exception Handling
------------------

[](#exception-handling)

```
use Pippa\NotificationSdkLaravel\Exceptions\NotificationException;

try {
    NotificationService::sendEmail('user@example.com', 'my_template');
} catch (NotificationException $e) {
    $e->getMessage();
    $e->getCode();
    $e->getErrors();
}
```

---

Available Methods
-----------------

[](#available-methods)

MethodDescription`send(SendMessageRequest)`Full control over the request`sendEmail($email, $template, $data)`Send email via template`sendSms($phone, $template, $data)`Send SMS via template`sendWhatsapp($whatsapp, $template, $data)`Send WhatsApp message`sendPush($push, $template, $data)`Send push notification`sendInApp($userId, $template, $data)`Send in-app notification`sendSlack($slack, $template, $data)`Send Slack message`sendDiscord($discord, $template, $data)`Send Discord message`sendMulti($recipients[], $template, $data)`Multi-channel, multi-recipient---

Recipient Helpers
-----------------

[](#recipient-helpers)

```
use Pippa\NotificationSdkLaravel\DTOs\Recipient;

Recipient::email('user@example.com')
Recipient::phone('+8801700000000')
Recipient::userId('user_123')
Recipient::whatsapp('+8801700000000')
Recipient::push('device_token')
Recipient::slack('#general')
Recipient::discord('channel_id')
Recipient::make(['email' => '...', 'phone' => '...', 'user_id' => '...'])
Recipient::make([...])->only(['email', 'sms'])
```

---

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Every ~7 days

Total

8

Last Release

33d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/259037430?v=4)[rajoni-pippa](/maintainers/rajoni-pippa)[@rajoni-pippa](https://github.com/rajoni-pippa)

---

Top Contributors

[![rajoni-pippa](https://avatars.githubusercontent.com/u/259037430?v=4)](https://github.com/rajoni-pippa "rajoni-pippa (14 commits)")

---

Tags

laravelsdkemailnotificationsmsinapp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pippa-notification-sdk-laravel/health.svg)

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)

PHPackages © 2026

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