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.0.3(1w ago)06MITPHPPHP ^8.1CI passing

Since May 6Pushed 1w 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 1w ago

READMEChangelogDependencies (10)Versions (4)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 In-App
$response = NotificationService::sendInApp(
    userId:   'user_123',
    template: 'order_update',
    data:     ['order_id' => 'ORD-456', 'status' => 'Shipped']
);
```

### 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'),
            ],
            '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`sendEmail($email, $template, $data)`Send email via template`sendSms($phone, $template, $data)`Send SMS via template`sendInApp($userId, $template, $data)`Send in-app notification`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::make(['email' => '...', 'phone' => '...', 'user_id' => '...'])
Recipient::make([...])->only(['email', 'sms'])
```

---

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance98

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

8d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/241c682d6caffc35e830cd34787faf149e46f06a1aa0aec6fb103bcbde905f60?d=identicon)[rajoni-pippa](/maintainers/rajoni-pippa)

---

Top Contributors

[![rajoni-pippa](https://avatars.githubusercontent.com/u/259037430?v=4)](https://github.com/rajoni-pippa "rajoni-pippa (8 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

[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.7M42](/packages/laravel-notification-channels-telegram)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

249143.0k](/packages/erag-laravel-disposable-email)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10239.9k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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