PHPackages                             a3dmorteza/kavenegar-php - 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. a3dmorteza/kavenegar-php

ActiveLibrary[API Development](/categories/api)

a3dmorteza/kavenegar-php
========================

A PHP wrapper for Kavenegar's API

02PHP

Since May 1Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

kavenegar-PHP
=============

[](#kavenegar-php)

[![Latest Stable Version](https://camo.githubusercontent.com/fd6a59f5f8de8d8364125f1714b5b3762ecec254c7c92c193b42f81a4e3b7ceb/68747470733a2f2f706f7365722e707567782e6f72672f6b6176656e656761722f7068702f762f737461626c652e737667)](https://packagist.org/packages/kavenegar/php)[![Total Downloads](https://camo.githubusercontent.com/02a213c48f0fe00dfc8cd8026b9b06273e7aa1fa5fb81e4346a70112078ee3fd/68747470733a2f2f706f7365722e707567782e6f72672f6b6176656e656761722f7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/kavenegar/php)

[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

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.

---

Use in these ways :

```
composer require kavenegar/php
```

or add

```
"kavenegar/php": "*"
```

And run following command to download extension using **composer**

```
$ composer update
```

Usage
-----

[](#usage)

Well, There is an example to Send SMS by PHP.

```
require __DIR__ . '/vendor/autoload.php';

try{
	$api = new \Kavenegar\KavenegarApi( "API Key" );
	$sender = "10004346";
	$message = "خدمات پیام کوتاه کاوه نگار";
	$receptor = array("09123456789","09367891011");
	$result = $api->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(\Kavenegar\Exceptions\ApiException $e){
	// در صورتی که خروجی وب سرویس 200 نباشد این خطا رخ می دهد
	echo $e->errorMessage();
}
catch(\Kavenegar\Exceptions\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
------------

[](#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

14

—

LowBetter than 2% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.3% 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/cab508a52bec5e4b9e64176db4d41fe3ec4decbe859f2828c4aa6dd279fbe785?d=identicon)[a3dmorteza](/maintainers/a3dmorteza)

---

Top Contributors

[![bgsrb](https://avatars.githubusercontent.com/u/8070100?v=4)](https://github.com/bgsrb "bgsrb (19 commits)")[![aryasadeghy](https://avatars.githubusercontent.com/u/16038644?v=4)](https://github.com/aryasadeghy "aryasadeghy (7 commits)")[![a3dmorteza](https://avatars.githubusercontent.com/u/23145463?v=4)](https://github.com/a3dmorteza "a3dmorteza (3 commits)")[![TheYahya](https://avatars.githubusercontent.com/u/15307244?v=4)](https://github.com/TheYahya "TheYahya (1 commits)")[![xoex](https://avatars.githubusercontent.com/u/6594217?v=4)](https://github.com/xoex "xoex (1 commits)")

### Embed Badge

![Health badge](/badges/a3dmorteza-kavenegar-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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