PHPackages                             amiraghaee/rahyabsms - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. amiraghaee/rahyabsms

ActiveLibrary[HTTP &amp; Networking](/categories/http)

amiraghaee/rahyabsms
====================

Rahyab Payam Gostaran SMS package for Laravel

1.0.0(5y ago)2148MITPHPPHP &gt;=7.2

Since May 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AmirAghaee/Rahyab-Payam-Gostaran-SMS-Laravel)[ Packagist](https://packagist.org/packages/amiraghaee/rahyabsms)[ RSS](/packages/amiraghaee-rahyabsms/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Rahyab Payam Gostaran SMS Package
=================================

[](#rahyab-payam-gostaran-sms-package)

This package provide simple helpers for sending sms from [Rahyab Payam Gostran](http://rahyabcp.ir/) gateway.
You can download the api gateway document [here](https://smsonline.ir/files/WebService-Send.pdf).

> This is not an official package but there is no other package for this sms gateway!

Table of Contents
-----------------

[](#table-of-contents)

- [Install](#Install)
- [Usage](#Usage)
- [Logging](#Logging)
- [License](#License)

Install
-------

[](#install)

The easiest way to install is by using Composer:

```
composer require amiraghaee/rahyabsms
```

Usage
-----

[](#usage)

To use the package, you need an password, username and shortcode. To get that you should have a [smsonline](https://smsonline.ir/) account. Register and get your authorization details.
Copy the following variables to your project .env file and fill the variables with your data.

```
RAHYAB_SMS_USERNAME="your-account-username"
RAHYAB_SMS_PASSWORD="your-account-password"
RAHYAB_SMS_SHORTCODE="your-shortcode"
```

Use rahyabsms on top of your controller or wherever you want:

```
use AmirAghaee\rahyabsms;
```

send simple sms
---------------

[](#send-simple-sms)

Then you can simply create an instance of rahyabsms and use send method to send a text message:

```
Rahyabsms::send('09xxxxxxxxx','Hello World!');
```

#### parameters

[](#parameters)

ParameterRequiredDescriptionTypenumberyesThe number of the receiver of the messagestringmessageyesText to be sentstringrecIdNoassign a ID to check status of deliverystringsend sms to several users
-------------------------

[](#send-sms-to-several-users)

You can send a text message to several numbers with this method:

```
$numbers = [
        '09xxxxxxxx1',
        '09xxxxxxxx2',
        '09xxxxxxxx3'
    ];
Rahyabsms::sendAll($numbers, 'Hello World!');
```

check credit
------------

[](#check-credit)

You can check balance of your account with this method:

```
Rahyabsms::getCredit();
```

check expire
------------

[](#check-expire)

You can check expire of your account with this method:

```
Rahyabsms::GetExpireDate();
```

Logging
-------

[](#logging)

This package can automatically log sent SMS to the database.
To enable this, you must copy the following variables into your project .env file.

```
RAHYAB_SMS_ENABLE_LOGS=true
```

Then run following command to create a table at the root of your project:

```
php artisan migrate
```

For accessing to the model use following namespace: ```
namespace AmirAghaee\rahyabsms\Models;
```

#### example:

[](#example)

```
SmsLog::get();
```

License
-------

[](#license)

Freely distributable under the terms of the [MIT](https://opensource.org/licenses/MIT) license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7da4049126a4a6eea162155bd67c7efcc52f11646f419c24124265687b622606?d=identicon)[amiraghaee](/maintainers/amiraghaee)

---

Top Contributors

[![AmirAghaee](https://avatars.githubusercontent.com/u/22327627?v=4)](https://github.com/AmirAghaee "AmirAghaee (12 commits)")

---

Tags

laravellaravel-packagesms

### Embed Badge

![Health badge](/badges/amiraghaee-rahyabsms/health.svg)

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

###  Alternatives

[binaryk/laravel-restify

Laravel REST API helpers

651399.1k](/packages/binaryk-laravel-restify)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59152.2k](/packages/lomkit-laravel-rest-api)[wirechat/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

5434.7k](/packages/wirechat-wirechat)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)

PHPackages © 2026

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