PHPackages                             kavenegar/laravel-notification - 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. [API Development](/categories/api)
4. /
5. kavenegar/laravel-notification

ActiveLaravel-package[API Development](/categories/api)

kavenegar/laravel-notification
==============================

laravel notificatiion channel for Kavenegar

1.0.5(9y ago)1338.5k↓25%6[2 issues](https://github.com/KaveNegar/kavenegar-laravel-notification/issues)1MITPHP

Since Mar 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/KaveNegar/kavenegar-laravel-notification)[ Packagist](https://packagist.org/packages/kavenegar/laravel-notification)[ RSS](/packages/kavenegar-laravel-notification/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (1)

Kavenegar notifications channel for Laravel 5.3 | 5.4
=====================================================

[](#kavenegar-notifications-channel-for-laravel-53--54)

This package makes it easy to send [Kavenegar SMS notifications](http://kavenegar.com/) with Laravel 5.3 or 5.4.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up your Kavenegar account](#setting-up-your-kavenegar-account)
- [Usage](#usage)
- [Contributing](#contributing)

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

[](#installation)

You can install the package via composer:

```
composer require kavenegar/laravel-notification
```

You must install the service provider:

```
// config/app.php
'providers' => [
    ...
    Kavenegar\LaravelNotification\KavenegarServiceProvider::class,
],
```

### Setting up your Kavenegar account

[](#setting-up-your-kavenegar-account)

Add your Kavenegar Account Key and Sender Number (optional) to your `config/services.php`:

```
// config/services.php
...
'kavenegar' => [
    'key' => env('KAVENEGAR_API_KEY'),
    'sender' => env('KAVENEGAR_SENDER')
],
...
```

Usage
-----

[](#usage)

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

```
use Kavenegar\LaravelNotification\KavenegarChannel;
use Illuminate\Notifications\Notification;

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

    public function toSMS($notifiable)
    {
        return 'Happy new year :D';
    }
}
```

In order to let your Notification know which phone number you are sending to, add the `routeNotificationForSms` method to your Notifiable model e.g your User Model

```
public function routeNotificationForSms()
{
    return $this->phone; // where `phone` is a field in your users table;
}
```

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

[](#contributing)

Bug fixes, docs, and enhancements welcome! Please let us know [](mailto:support@kavenegar.com?Subject=SDK)

---

راهنما
------

[](#راهنما)

### معرفی سرویس کاوه نگار

[](#معرفی-سرویس-کاوه-نگار)

کاوه نگار یک وب سرویس ارسال و دریافت پیامک و تماس صوتی است که به راحتی میتوانید از آن استفاده نمایید.

### ساخت حساب کاربری

[](#ساخت-حساب-کاربری)

اگر در وب سرویس کاوه نگار عضو نیستید میتوانید از [لینک عضویت](http://panel.kavenegar.com/client/membership/register) ثبت نام و اکانت آزمایشی برای تست API دریافت نمایید.

### مستندات

[](#مستندات)

برای مشاهده اطلاعات کامل مستندات [وب سرویس پیامک](http://kavenegar.com/%D9%88%D8%A8-%D8%B3%D8%B1%D9%88%DB%8C%D8%B3-%D9%BE%DB%8C%D8%A7%D9%85%DA%A9.html) به صفحه [مستندات وب سرویس](http://kavenegar.com/rest.html) مراجعه نمایید.

### راهنمای فارسی

[](#راهنمای-فارسی)

در صورتی که مایل هستید راهنمای فارسی کیت توسعه کاوه نگار را مطالعه کنید به صفحه [کد ارسال پیامک](http://kavenegar.com/sdk.html) مراجعه نمایید.

### اطالاعات بیشتر

[](#اطالاعات-بیشتر)

برای مطالعه بیشتر به صفحه معرفی [وب سرویس اس ام اس ](http://kavenegar.com)کاوه نگار مراجعه نمایید .

اگر در استفاده از کیت های سرویس کاوه نگار مشکلی یا پیشنهادی داشتید ما را با یک Pull Request یا ارسال ایمیل به  خوشحال کنید.

[![http://kavenegar.com](https://camo.githubusercontent.com/185be00cf5f1981bb89c349536850438c3080d325ff9575e273e00024d75b658/687474703a2f2f6b6176656e656761722e636f6d2f7075626c69632f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/185be00cf5f1981bb89c349536850438c3080d325ff9575e273e00024d75b658/687474703a2f2f6b6176656e656761722e636f6d2f7075626c69632f696d616765732f6c6f676f2e706e67)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 55% 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 ~6 days

Total

6

Last Release

3332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34bad85cdd8bfe937a3f4a31808d75a788c882e8784c710f3672760355a3cc67?d=identicon)[bgsrb](/maintainers/bgsrb)

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

---

Top Contributors

[![palvaneh](https://avatars.githubusercontent.com/u/12458954?v=4)](https://github.com/palvaneh "palvaneh (11 commits)")[![bgsrb](https://avatars.githubusercontent.com/u/8070100?v=4)](https://github.com/bgsrb "bgsrb (4 commits)")[![Anisi](https://avatars.githubusercontent.com/u/7829372?v=4)](https://github.com/Anisi "Anisi (3 commits)")[![aryasadeghy](https://avatars.githubusercontent.com/u/16038644?v=4)](https://github.com/aryasadeghy "aryasadeghy (2 commits)")

---

Tags

apilaravelsmskavenegarnotificatiion

### Embed Badge

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

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

###  Alternatives

[kavenegar/laravel

laravel 4 and 5 kavenegar integration

87336.7k4](/packages/kavenegar-laravel)[multicaret/laravel-unifonic

 A library to integrate with Unifonic API to send SMS

25182.9k2](/packages/multicaret-laravel-unifonic)[melipayamak/laravel

Laravel Melipayamak Integration

2528.9k1](/packages/melipayamak-laravel)

PHPackages © 2026

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