PHPackages                             notarchid/laravel-smsgateway-me - 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. notarchid/laravel-smsgateway-me

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

notarchid/laravel-smsgateway-me
===============================

SMSGateway.Me for Laravel

1.0.0(8y ago)44272MITPHPPHP &gt;=5.5.9

Since Dec 26Pushed 8y agoCompare

[ Source](https://github.com/notarchid/laravel-smsgateway-me)[ Packagist](https://packagist.org/packages/notarchid/laravel-smsgateway-me)[ RSS](/packages/notarchid-laravel-smsgateway-me/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

SMSGateway.Me for Laravel 5.x
=============================

[](#smsgatewayme-for-laravel-5x)

A PHP library to interact with [SMSGateway.Me](https://smsgateway.me) API.

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

[](#installation)

Run the following [composer](https://getcomposer.org) command to automatically update your `composer.json`

```
composer require notarchid/laravel-smsgateway-me
```

### Laravel 5.x:

[](#laravel-5x)

After updating composer, add the ServiceProvider to the providers array in `config/app.php` so it can be loaded by Laravel.

```
'providers' => [
    // ...
    NotArchid\SmsGateway\ServiceProvider::class,
],
```

In order to use the `SmsGateway` facade, you need to register it to the facades array in `config/app.php`.

```
'facades' => [
    // ...
    'SmsGateway' => NotArchid\SmsGateway\Facade::class,
],
```

In order to use the `SmsGateway.Me`, you need to have an [SMSGateway.Me](https://smsgateway.me)'s account and set your credentials by inserting this inside your `config/services.php`:

```
return [
    //...
    'smsgateway' => [
        'email' => 'your-email',
        'password' => 'your-password',
        'device_id' => 'your-device-id'
    ],
];
```

Usage
-----

[](#usage)

```
// Getting a list of your devices.
$sms = SmsGateway::devices()
                 ->get();
// Or
$sms = SmsGateway::get('devices');

// Getting a list of your devices per page.
$page = 2;
$sms = SmsGateway::devices()
                 ->page($page)
                 ->get();

// Getting a details on a specific device.
$device_id = 33431;

$sms = SmsGateway::device($device_id)
                 ->get();
// Or
$sms = SmsGateway::get('device', $device_id);

// Getting a list of your messages.
$sms = SmsGateway::messages()
                 ->get();
// Or
$sms = SmsGateway::get('messages');

// Getting a list of your messages per page.
$page = 2;
$sms = SmsGateway::messages()
                 ->page($page)
                 ->get();

// Getting a details on s specific message.
$message_id = 82323;

$sms = SmsGateway::message($message_id)
                 ->get();
// Or
$sms = SmsGateway::get('message', $message_id);

// Sending message to a number.
$number = '+44771232343';
$message = 'Hello World!';

$sms = SmsGateway::to($number)
                 ->message($message)
                 ->send()
// Or
$sms = SmsGateway::send($number, $message);

// Sending message to many numbers.
$numbers = ['+44771232343', '+44771232344'];
$message = 'Hello World!';

$sms = SmsGateway::to($numbers)
                 ->message($message)
                 ->send();
// Or
$sms = SmsGateway::send($numbers, $message);

// Sending message to a contact.
$contact = 98123;
$message = 'Hello World!';

$sms = SmsGateway::contact($contact)
                 ->message($message)
                 ->send();
// Or
$sms = SmsGateway::send($contact, $message);

// Sending message to many contacts.
$contacts = [98123, 98124];
$message = 'Hello World!';

$sms = SmsGateway::contacts($contacts)
                 ->message($message)
                 ->send();
// Or
$sms = SmsGateway::send($contacts, $message);

// Sending many messages to many numbers or contacts.
$device1 = 33431;
$device2 = 33432;
$number = '+44771232343';
$contact = 98123;
$message1 = 'Hello there!';
$message2 = 'Good morning!';

$sms = SmsGateway::options([
                     [
                         'device' => $device1,
                         'number' => $number,
                         'message' => $message1,
                         'send_at' => strtotime('+1 minute'),
                         'expires_at' => strtotime('+10 minutes')
                     ], [
                         'device' => $device2,
                         'contact' => $number,
                         'message' => $message1,
                     ]
                 ])
                 ->send();
// Or
$sms = SmsGateway::send([
                     [
                         'device' => $device1,
                         'number' => $number,
                         'message' => $message1,
                         'send_at' => strtotime('+1 minute'),
                         'expires_at' => strtotime('+10 minutes')
                     ], [
                         'device' => $device2,
                         'contact' => $number,
                         'message' => $message1,
                     ]
                 ]);

// Getting a list of your contacts.
$sms = SmsGateway::contacts()
                 ->get();
// Or
$sms = SmsGateway::get('contacts');

// Getting a list of your contacts per page.
$page = 2;
$sms = SmsGateway::contacts()
                 ->page($page)
                 ->get();

// Getting a details on a specific contact.
$contact_id = 33431;

$sms = SmsGateway::contact($contact_id)
                 ->get();
// Or
$sms = SmsGateway::get('contact', $contact_id);

// Create a new contact.
$sms = SmsGateway::contact('John Doe', '+44771232343')
                 ->create();
// Or
$sms = SmsGateway::contact(['John Doe', '+44771232343'])
                 ->create();
// Or
$sms = SmsGateway::contact()
                 ->create('John Doe', '+44771232343');
// Or
$sms = SmsGateway::contact()
                 ->create(['John Doe', '+44771232343']);

// Adding options like send_at and expires_at is as simple as adding
// ->options(['send_at' => $timeToSend, 'expires_at' => $timeToExpire])
// to your command.
// Example:
$sms = SmsGateway::contact(98123)
                 ->message('Hello World!')
                 ->options([
                     'send_at' => strtotime('+1 minute'),
                     'expires_at' => strtotime('+10 minutes')
                 ])
                 ->send();
```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3108d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31198078?v=4)[Rizki Dwi](/maintainers/notarchid)[@notarchid](https://github.com/notarchid)

---

Top Contributors

[![notarchid](https://avatars.githubusercontent.com/u/31198078?v=4)](https://github.com/notarchid "notarchid (1 commits)")

---

Tags

laravelsmsgatewaysmsgateway

### Embed Badge

![Health badge](/badges/notarchid-laravel-smsgateway-me/health.svg)

```
[![Health](https://phpackages.com/badges/notarchid-laravel-smsgateway-me/health.svg)](https://phpackages.com/packages/notarchid-laravel-smsgateway-me)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10139.9k](/packages/gr8shivam-laravel-sms-api)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4849.3k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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