PHPackages                             khaliilii/raygansms - 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. khaliilii/raygansms

ActiveLibrary[API Development](/categories/api)

khaliilii/raygansms
===================

is package for api service sms from raygan sms author: Mohsen Khalili from pointshare.ir developer team

215PHP

Since Dec 30Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/f702529805975af0f968344588576c8b6626893690dfd754d9f8c3fb868d166b/68747470733a2f2f706f7365722e707567782e6f72672f6b68616c69696c69692f72617967616e736d732f762f737461626c65)](https://packagist.org/packages/khaliilii/raygansms)[![License](https://camo.githubusercontent.com/1965de41320f2f10ca4cda0d360eb52ef7af020fbc78353f7ae832ae953ab3ce/68747470733a2f2f706f7365722e707567782e6f72672f6b68616c69696c69692f72617967616e736d732f6c6963656e7365)](https://packagist.org/packages/khaliilii/raygansms)[![Total Downloads](https://camo.githubusercontent.com/07c1581343c3e0304672836285af073b3e8ee03b0758f807a79d81fb84f44c35/68747470733a2f2f706f7365722e707567782e6f72672f6b68616c69696c69692f72617967616e736d732f646f776e6c6f616473)](https://packagist.org/packages/khaliilii/raygansms)[![Latest Unstable Version](https://camo.githubusercontent.com/da02daec3f29e758b48c5c3c19e9ff51285d5a56dfaad11f884a6ad9e11f67fe/68747470733a2f2f706f7365722e707567782e6f72672f6b68616c69696c69692f72617967616e736d732f762f756e737461626c65)](https://packagist.org/packages/khaliilii/raygansms)

how install raygansms
=====================

[](#how-install-raygansms)

for laravel 5.6, 5.7 install
----------------------------

[](#for-laravel-56-57-install)

### step 1

[](#step-1)

### composer require mohkhmk/raygansms

[](#composer-require-mohkhmkraygansms)

### step 2

[](#step-2)

### add username and password to .env file

[](#add-username-and-password-to-env-file)

### RAYGANSMS\_USERNAME=\*\*\*\*\*\*

[](#raygansms_username)

### RAYGANSMS\_PASSWORD=\*\*\*\*\*\*

[](#raygansms_password)

---

for laravel 5.3 to 5.5 install
------------------------------

[](#for-laravel-53-to-55-install)

### step 1

[](#step-1-1)

### composer require mohkhmk/raygansms

[](#composer-require-mohkhmkraygansms-1)

### step 2

[](#step-2-1)

### service provider add to config/app.php (For Laravel: v5.3, v5.4)

[](#service-provider-add-to-configappphp-for-laravel-v53-v54)

##### Khaliilii\\Raygansms\\Providers\\RaygansmsServiceProvider::class,

[](#khaliiliiraygansmsprovidersraygansmsserviceproviderclass)

### step 3

[](#step-3)

### aliases add to config/app.php (For Laravel: v5.3, v5.4)

[](#aliases-add-to-configappphp-for-laravel-v53-v54)

##### 'RayganSmsFacade' =&gt; Khaliilii\\Raygansms\\Facade\\RayganSmsFacade::class,

[](#raygansmsfacade--khaliiliiraygansmsfacaderaygansmsfacadeclass)

### step 4

[](#step-4)

### add username and password to .env file

[](#add-username-and-password-to-env-file-1)

### RAYGANSMS\_USERNAME=\*\*\*\*\*\*

[](#raygansms_username-1)

### RAYGANSMS\_PASSWORD=\*\*\*\*\*\*

[](#raygansms_password-1)

---

how use class
=============

[](#how-use-class)

### get Credit

[](#get-credit)

#### recieve get credit account Raygansms.ir

[](#recieve-get-credit-account-raygansmsir)

#### how use:

[](#how-use)

#### getCredit();

[](#getcredit)

#### return {

[](#return--)

#### "Code":0,

[](#code0)

#### "Message":"عملیات با موفقیت انجام شد",

[](#messageعملیات-با-موفقیت-انجام-شد)

#### "Result":5292

[](#result5292)

#### }

[](#)

#### example read return $result-&gt;Message;

[](#example-read-return-result-message)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### get price message send

[](#get-price-message-send)

#### how use:

[](#how-use-1)

#### getPrices();

[](#getprices)

#### return

[](#return)

#### {

[](#-1)

#### "Fa\_Price": 129

[](#fa_price-129)

#### "En\_Price": 295

[](#en_price-295)

#### }

[](#-2)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### Send Message

[](#send-message)

#### how use:

[](#how-use-2)

#### SendMessage($username,$password,$number,$message,explode(",",$mobile));

[](#sendmessageusernamepasswordnumbermessageexplodemobile)

#### return {

[](#return-)

#### "Code": 0

[](#code-0)

#### "Message": "عملیات با موفقیت انجام شد"

[](#message-عملیات-با-موفقیت-انجام-شد)

#### "Result": "c0613e77-69b8-43f4-a1fd-59e50da41dd6"

[](#result-c0613e77-69b8-43f4-a1fd-59e50da41dd6)

#### }

[](#-3)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### show message status

[](#show-message-status)

#### use methode: RayganSmsFacade::getStatusMessage(

[](#use-methode-raygansmsfacadegetstatusmessage)

#### 'sendNumber',

[](#sendnumber)

#### 'phoneNumber',

[](#phonenumber)

#### 'MessageId');

[](#messageid)

#### return SimpleXMLElement {

[](#return-simplexmlelement-)

#### return \[

[](#return--1)

#### "mobile" =&gt; "9358487574"

[](#mobile--9358487574)

#### \]

[](#-4)

#### +0: "1"

[](#0-1)

#### }

[](#-5)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### showWhiteList

[](#showwhitelist)

#### how use:

[](#how-use-3)

#### RayganSmsFacade::showWhiteList(explode(',','phone');

[](#raygansmsfacadeshowwhitelistexplodephone)

#### how return

[](#how-return)

#### return {

[](#return--2)

#### "Code": 0

[](#code-0-1)

#### "Message": "عملیات با موفقیت انجام شد"

[](#message-عملیات-با-موفقیت-انجام-شد-1)

#### "Result": array:1 \[

[](#result-array1-)

#### 0 =&gt; 9392280806

[](#0--9392280806)

#### \]

[](#-6)

#### }

[](#-7)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### recieve Message

[](#recieve-message)

#### start page from 1

[](#start-page-from-1)

#### how use:

[](#how-use-4)

#### RayganSmsFacade::receiveMessages(

[](#raygansmsfacadereceivemessages)

#### 'phone',

[](#phone)

#### '2018-06-06 21:26:30',

[](#2018-06-06-212630)

#### '2018-11-01 20:59:29',

[](#2018-11-01-205929)

#### 1);

[](#1)

#### \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

[](#-8)

#### return {

[](#return--3)

#### "Code": 0

[](#code-0-2)

#### "Message": "عملیات با موفقیت انجام شد"

[](#message-عملیات-با-موفقیت-انجام-شد-2)

#### "Result": {

[](#result-)

#### "Page": 1

[](#page-1)

#### "TotalPage": 1

[](#totalpage-1)

#### "ReceivedMsgs": \[\]

[](#receivedmsgs-)

#### }

[](#-9)

#### }

[](#-10)

\######\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

### verification send code

[](#verification-send-code)

#### how use:

[](#how-use-5)

#### verifyMessageSend($phoneNumber,$code);

[](#verifymessagesendphonenumbercode)

#### return {true} or return {false}

[](#return-true-or-return-false)

\############end

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2052c15ce47679d3a38e30dbd542ba0646598e31c97b5728a8a830b74c822a99?d=identicon)[khaliilii](/maintainers/khaliilii)

---

Top Contributors

[![khaliilii](https://avatars.githubusercontent.com/u/29864938?v=4)](https://github.com/khaliilii "khaliilii (22 commits)")

### Embed Badge

![Health badge](/badges/khaliilii-raygansms/health.svg)

```
[![Health](https://phpackages.com/badges/khaliilii-raygansms/health.svg)](https://phpackages.com/packages/khaliilii-raygansms)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M34](/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.1M454](/packages/google-gax)

PHPackages © 2026

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