PHPackages                             zymawy/sms2net - 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. zymawy/sms2net

ActiveLibrary[API Development](/categories/api)

zymawy/sms2net
==============

This Simple Package 📦 Can Help You Interacting With Net2SMS API

0.65(7y ago)114MITPHPPHP &gt;=7.1

Since Dec 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zymawy/laravel-sms2net)[ Packagist](https://packagist.org/packages/zymawy/sms2net)[ RSS](/packages/zymawy-sms2net/feed)WikiDiscussions master Synced today

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

Sms2Net GeteWay Package
=======================

[](#sms2net-geteway-package)

| This Simple Package 📦 Can Help You Interacting With [Net2SMS](https://www.net2sms.net/) API. | So You Can Send Check Balance, Get All Messages You Saved. And Many More.

Installtions
------------

[](#installtions)

You Need To Require The Package In Order It To Work.

```
λ composer require zymawy/sms2net
```

Then Register The Service Provider To `config/app.php` Inside `providers array`

```
'providers' => [
/*
* Package Service Providers...
*/
Zymawy\Sms2Net\Sms2NetServiceProvider::class,
..Rest of Services
]
```

In The Same File Place The Facade Inside `alias array`.

```
/*
 Class Aliases
*/
'aliases' => [
'Sms2Net' => \Zymawy\Sms2Net\Facades\Sms2NetFacade::class,
..Rest of Services
]
```

Update You Your `.env`

```
SMS2NET_USERNAME=
SMS2NET_PASSWORD=
SMS2NET_UNICODE=
SMS2NET_SENDER=
SMS2NET_IS_TEST=
```

Finally, You Need To Publish The Config File And The Lang File. So You Can Provide The Account Credentials.

```
λ php artisan vendor:publish --provider="Zymawy\Sms2Net\Sms2NetServiceProvider"
```

Available Functions
===================

[](#available-functions)

##### `sendToMany();`

[](#sendtomany)

### This Function Just If You Want To Send A Heavy array of numbers since it take time to process. Use `sendToOne` Instead For Preference.

[](#this-function-just-if-you-want-to-send-a-heavy-array-of-numbers-since-it-take-time-to-process-use-sendtoone-instead-for-preference)

|| it take to arguments `$numbers`And `$message`

```
$msg =  'In The Name Of Allah The Merciful';
$numbers = [
    '009665900000000',
    '0540000000',
    '+966550000000'
];

$response = Sms2Net::sendToMany($numbers,$msg);
```

On Success

```
{
    "msg": "تم بنجاح ارسال الرسالة",
    "code": "Ok 000",
    "count_delivered_msg": "99",
    "full_massage": "Ok 000, Message Has Been Sent, [99] ID:9999"
}

```

On Errors ERR: Error number
---------------------------

[](#on-errorserr-error-number)

##### `sendToOne();`

[](#sendtoone)

### This Function Just If You Want To Send A A Major Array Of Numbers. Use `sendToOne` Instead For heavy Array Of Numbers.

[](#this-function-just-if-you-want-to-send-a-a-major-array-of-numbers-use-sendtoone-instead-for-heavy-array-of-numbers)

|| it take to arguments `$numbers`And `$message`

```
$msg =  'In The Name Of Allah Most Merciful';
$user = App\User::first();
$response = Sms2Net::sendToMany($user->phone_number,$msg);
```

On Success

```
{
   "msg": "تم بنجاح ارسال الرسالة",
   "code": "Ok 000",
   "count_delivered_msg": "99",
   "full_massage": "Ok 000, Message Has Been Sent, [99] ID:9999"
}
```

On Errors

```
ERR: Error number
```

---

#### `geBalance()`

[](#gebalance)

This will return the number of credits available on this particular account. The account balance is returned as a floating point value.

```
$balance = Sms2Net::geBalance();
return $balance;
```

On Success

```
{
  "msg": "النقاط المتوفرة ",
  "full_massage": "Credit = 232340",
  "points": "232340"
}
```

---

#### `getMessages()`

[](#getmessages)

This will return a list of all user messages in an XML format. it returned XML Format

```
Sms2Net::getMessages();
```

On Success

```

    xxxx
        xxxx
    xxxx

```

---

#### `contactUs()`

[](#contactus)

This function to email web service to contact us it returned XML Format

```
Sms2Net::contactUs('test@gmail.com', 'A Test Message');
```

On Success

```

    Your message was sent successfully. Thanks.

```

---

#### `getGroups()`

[](#getgroups)

This will return a list of all groups for specific user in an XML format --it returned XML Format

```
Sms2Net::getGroups();
```

On Success

```

    xxxx
    xxxx

```

---

#### `getGroup()`

[](#getgroup)

This will return a list of all groups for specific user in an XML format --it returned XML Format

```
$groupID = 212312;
Sms2Net::getGroup($groupID);
```

On Success

```

    xxxx
    xxxx
    xxxx

```

---

#### `phoneBook()`

[](#phonebook)

This will return a list of all groups &amp; members for specific user and in an XML format --it returned XML Format

```
Sms2Net::phoneBook();
```

On Success

```

        xxxx
        xxxx

        xxxx
        xxxx
        xxxx

```

---

#### `sender()`

[](#sender)

This will return a list of all Senders for specific user in an XML format --it returned XML Format

```
Sms2Net::sender();
```

On Success

```

    xxxx
    xxxx
    xxxx

```

Contributing
------------

[](#contributing)

Always Welcome 💞

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contact
-------

[](#contact)

Twitter [@RttCy](https://twitter.com/RttCy)

License
-------

[](#license)

Laravel-Sms2net is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

© 2018 Hamza Zymawy, All rights reserved.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe0842ec0c7189b188c5ca0e77c29ae6af16e93ab96b1eb081af67cb56454fd0?d=identicon)[zymawy](/maintainers/zymawy)

---

Top Contributors

[![zymawy](https://avatars.githubusercontent.com/u/15253683?v=4)](https://github.com/zymawy "zymawy (13 commits)")

---

Tags

getewaylaravelnet2smssmssms-gatewaylaravelsmssms2netDeewan Alrasaile

### Embed Badge

![Health badge](/badges/zymawy-sms2net/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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