PHPackages                             guilhermedev98/larasms - 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. guilhermedev98/larasms

ActiveLibrary

guilhermedev98/larasms
======================

SMS gateway for Laravel using various vendors (SMSGateway.me, Zenziva, etc)

v1.4.1(7y ago)023MITPHPPHP &gt;=7.0.0

Since May 9Pushed 6y agoCompare

[ Source](https://github.com/GuilhermeDev98/larasms)[ Packagist](https://packagist.org/packages/guilhermedev98/larasms)[ Docs](https://github.com/arvernester/smsgateway)[ RSS](/packages/guilhermedev98-larasms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (7)Used By (0)

Laravel SMS Gateway
===================

[](#laravel-sms-gateway)

[![StyleCI](https://camo.githubusercontent.com/ca43427e97fa86ef69ef5ad1d96879417c53808f6b665f303c01ca676bca74b8/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133323730303839312f736869656c64)](https://camo.githubusercontent.com/ca43427e97fa86ef69ef5ad1d96879417c53808f6b665f303c01ca676bca74b8/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133323730303839312f736869656c64)

Laravel SMS is a package that has abilities to send and receive SMS via SMS gateway from various vendors such as SMSgateway.me, Zenziva.id, etc.

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

[](#table-of-contents)

- [Requirements](https://github.com/arvernester/laravel-sms#requirements)
- [Available Vendors](https://github.com/arvernester/laravel-sms#available-vendors)
- [Installation Instructions](https://github.com/arvernester/laravel-sms#installations)
    - [SMSGateway.me](https://github.com/arvernester/laravel-sms#smsgatewayme)
    - [Zenziva.id](https://github.com/arvernester/laravel-sms#zenzivaid)
- [Usage](https://github.com/arvernester/laravel-sms#usage)
- [Additional Methods](https://github.com/arvernester/laravel-sms#additional-methods)
    - [SMSGateway.me](https://github.com/arvernester/laravel-sms#smsgatewayme-1)
    - [Zenziva.id](https://github.com/arvernester/laravel-sms#zenzivaid-1)
- [License](https://github.com/arvernester/laravel-sms#license)

Requirements
------------

[](#requirements)

- PHP 7.0 or above.
- cURL extension for PHP.
- Laravel version 5.4 or above.

Available Vendors
-----------------

[](#available-vendors)

- [SMSGateway.me](http://smsgateway.me/) (`smsgatewayme`)
- [Zenziva.id](http://www.zenziva.id) (`zenziva`)

Installation Instructions
-------------------------

[](#installation-instructions)

Install package via Composer by running the command:

```
composer require yugo/smsgateway -vvv

```

Publish package assets using the command below:

```
php artisan vendor:publish

```

Select package from `yugo/smsgateway` to automatically copy a config file to your config application directory.

[![vendor-publish.gif](https://camo.githubusercontent.com/26539043e7832cd0004497756ac64e81b4e8443119f1f7de2d965552ada50272/68747470733a2f2f73392e706f7374696d672e63632f36626d6469736d69372f76656e646f722d7075626c6973682e676966)](https://postimg.cc/image/ki24e0xd7/)

**Note:** If you are using Laravel version 5.4, you must setup provider manually by adding `Yugo\SMSGateway\Providers\SmsServiceProvider::class` to your `config/app.php` file.

```
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Yugo\SMSGateway\Providers\SmsServiceProvider::class,
```

Then, publish package vendor using command below.

```
php artisan vendor:publish --provider="Yugo\SMSGateway\Providers\SmsServiceProvider"

```

### SMSGateway.me

[](#smsgatewayme)

To enable and using SMSgateway.me vendor, you must set new configurations based on SMSgateway.me setting. Add two config values like as below.

```
SMS_VENDOR="smsgatewayme"
SMSGATEWAYME_DEVICE=
SMSGATEWAYME_TOKEN=

```

### Zenziva.id

[](#zenzivaid)

Login to your Zenziva.id dashboard account to get `userkey` and `passkey` value. Add `userkey` and `passkey` to `.env` file using these configurations.

```
SMS_VENDOR="zenziva"
ZENZIVA_USERKEY=userkey
ZENZIVA_PASSKEY=passkey

```

Usage
-----

[](#usage)

Sending a new message using Laravel SMS is easy. You just import real-time facade from the package and call the available methods inside it.

```
use Facades\Yugo\SMSGateway\Interfaces\SMS;
```

Now, you can use class SMS inside your PHP file. Every vendor has `send(array $destinations, string $message)` method.

Quick example:

```
SMS::send(['62891111111'], 'Hello, how are you?');
```

Additional Methods
------------------

[](#additional-methods)

Some vendors have additional methods. For example, you can check balance when using Zenziva and check device when using SMSGateway.me.

### SMSGateway.me

[](#smsgatewayme-1)

```
// get registered device information
SMS::device(?int $id); // $id is nullable

// get detailed information from message
SMS::info(int $id);

// cancel queued message
SMS::cancel(array $id);
```

By default, SMSgateway.me package will using API configuration from `.env` file (such as device and token). But, you can set device ID and token programmatically via application. For example:

```
SMS::setDevice(12345) // make sure it's integer value
  ->setToken('secret-token')
  ->send(['08111111111'], 'Message with custom device and token.');
```

### Zenziva.id

[](#zenzivaid-1)

```
// get credit balance
SMS::credit();
```

If you want to set `userkey` and/or `passkey` manually, you can using `setUser(string $user)` and `setPassword(string $password)` method. For example:

```
SMS::setUser('you')
  ->setPassword('secret')
  ->send(['08111111111'], 'Message with custom user and password.');
```

License
=======

[](#license)

MIT.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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

Every ~1 days

Total

6

Last Release

2917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f634a2eff6378f042e89056871ef76a975bb2baf01b9db707190a34d3ebeec76?d=identicon)[Guilherme Santos](/maintainers/Guilherme%20Santos)

---

Top Contributors

[![yugo412](https://avatars.githubusercontent.com/u/477311?v=4)](https://github.com/yugo412 "yugo412 (53 commits)")[![GuilhermeDev98](https://avatars.githubusercontent.com/u/14255823?v=4)](https://github.com/GuilhermeDev98 "GuilhermeDev98 (1 commits)")

---

Tags

laravelsmssmsgateway

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/guilhermedev98-larasms/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)

PHPackages © 2026

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