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

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

beaumind/kavenegar-laravel
==========================

laravel 7 kavenegar integration

v1.1.1(6y ago)09MITPHP

Since Oct 18Pushed 6y agoCompare

[ Source](https://github.com/beaumind/kavenegar-laravel)[ Packagist](https://packagist.org/packages/beaumind/kavenegar-laravel)[ RSS](/packages/beaumind-kavenegar-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

kavenegar-laravel
=================

[](#kavenegar-laravel)

[Kavenegar RESTful API Document](http://kavenegar.com/rest.html)
================================================================

[](#kavenegar-restful-api-document)

If you need to future information about API document Please visit RESTful Document

Requirements
------------

[](#requirements)

Laravel 4 or 5.

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

[](#installation)

First of all, You need to make an account on Kavenegar from [Here](https://panel.kavenegar.com/Client/Membership/Register)

After that you just need to pick API-KEY up from [My Account](http://panel.kavenegar.com/Client/setting/index) section.

Install it this way :

```
composer require kavenegar/laravel
```

Laravel 5 and 6
---------------

[](#laravel-5-and-6)

Add the `Kavenegar\Laravel\ServiceProvider` provider to the `providers` array in `config/app.php`:

```
'providers' => [
  ...
  Kavenegar\Laravel\ServiceProvider::class,
],
```

Then add the facade to your `aliases` array:

```
'aliases' => [
  ...
  'Kavenegar' => Kavenegar\Laravel\Facade::class,
],
```

Finally, publish the config file with `php artisan vendor:publish` Or alternatively for laravel 5 you can do: `php artisan vendor:publish --provider="Kavenegar\Laravel\ServiceProviderLaravel5"`. And for laravel 6: `php artisan vendor:publish --provider="Kavenegar\Laravel\ServiceProviderLaravel6"`.
 And you'll find it at `config/kavenegar.php`.

Laravel 4
---------

[](#laravel-4)

Add the `Kavenegar\Laravel\ServiceProvider` provider to the `providers` array in `app/config.php`:

```
'providers' => [
  ...
  'Kavenegar\Laravel\ServiceProvider',
],
```

Then add the facade to your `aliases` array:

```
'aliases' => [
  ...
  'Kavenegar' => 'Kavenegar\Laravel\Facade',
],
```

Finally, publish the config file with `php artisan config:publish kavenegar/laravel`. You'll find the config file at `app/config/packages/kavenegar/laravel/config.php`.

Usage
-----

[](#usage)

Well, There is an example to Send SMS by Laravel below.

```
try{
    $sender = "10004346";
    $message = "خدمات پیام کوتاه کاوه نگار";
    $receptor = array("09123456789","09367891011");
    $result = Kavenegar::Send($sender,$receptor,$message);
    if($result){
        foreach($result as $r){
            echo "messageid = $r->messageid";
            echo "message = $r->message";
            echo "status = $r->status";
            echo "statustext = $r->statustext";
            echo "sender = $r->sender";
            echo "receptor = $r->receptor";
            echo "date = $r->date";
            echo "cost = $r->cost";
        }
    }
}
catch(ApiException $e){
    // در صورتی که خروجی وب سرویس 200 نباشد این خطا رخ می دهد
    echo $e->errorMessage();
}
catch(HttpException $e){
    // در زمانی که مشکلی در برقرای ارتباط با وب سرویس وجود داشته باشد این خطا رخ می دهد
    echo $e->errorMessage();
}

/*
sample output
{
    "return":
    {
        "status":200,
        "message":"تایید شد"
    },
    "entries":
    [
        {
            "messageid":8792343,
            "message":"خدمات پیام کوتاه کاوه نگار",
            "status":1,
            "statustext":"در صف ارسال",
            "sender":"10004346",
            "receptor":"09123456789",
            "date":1356619709,
            "cost":120
        },
        {
            "messageid":8792344,
            "message":"خدمات پیام کوتاه کاوه نگار",
            "status":1,
            "statustext":"در صف ارسال",
            "sender":"10004346",
            "receptor":"09367891011",
            "date":1356619709,
            "cost":120
        }
    ]
}
*/
```

\#Contribution 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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

2411d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24860137?v=4)[Amir Hassani](/maintainers/beaumind)[@beaumind](https://github.com/beaumind)

---

Top Contributors

[![bgsrb](https://avatars.githubusercontent.com/u/8070100?v=4)](https://github.com/bgsrb "bgsrb (9 commits)")[![AmirMehrabi](https://avatars.githubusercontent.com/u/3878847?v=4)](https://github.com/AmirMehrabi "AmirMehrabi (6 commits)")[![mohsenk](https://avatars.githubusercontent.com/u/1856478?v=4)](https://github.com/mohsenk "mohsenk (4 commits)")[![aryasadeghy](https://avatars.githubusercontent.com/u/16038644?v=4)](https://github.com/aryasadeghy "aryasadeghy (3 commits)")[![beaumind](https://avatars.githubusercontent.com/u/24860137?v=4)](https://github.com/beaumind "beaumind (3 commits)")[![saeedsajadi](https://avatars.githubusercontent.com/u/3465334?v=4)](https://github.com/saeedsajadi "saeedsajadi (2 commits)")[![hosseinRezaei188](https://avatars.githubusercontent.com/u/38961143?v=4)](https://github.com/hosseinRezaei188 "hosseinRezaei188 (1 commits)")

---

Tags

apilaravelsmskavenegar

### Embed Badge

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

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

###  Alternatives

[kavenegar/laravel

laravel 4 and 5 kavenegar integration

87336.7k4](/packages/kavenegar-laravel)[kavenegar/laravel-notification

laravel notificatiion channel for Kavenegar

1338.5k1](/packages/kavenegar-laravel-notification)[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)
