PHPackages                             erfanhemmati/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. erfanhemmati/kavenegar-laravel-notification

ActiveLaravel-package[Mail &amp; Notifications](/categories/mail)

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

laravel notificatiion channel for Kavenegar

02.2kPHP

Since Jul 20Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

18

—

LowBetter than 8% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/926de636a540c26039c73522e4a469a819cf36853406c1d48202579b7935f32a?d=identicon)[erfanhemmati](/maintainers/erfanhemmati)

---

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)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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