PHPackages                             shiroamada/gosms - 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. shiroamada/gosms

ActiveLibrary

shiroamada/gosms
================

GoSMS Notifications channel for Laravel 5.3 - 11

v11.0.1(6mo ago)02321MITPHPPHP &gt;=7.3CI failing

Since Oct 27Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/shiroamada/gosms)[ Packagist](https://packagist.org/packages/shiroamada/gosms)[ Docs](https://github.com/shiroamada/gosms)[ RSS](/packages/shiroamada-gosms/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (6)Versions (10)Used By (0)

GoSms notifications channel for Laravel 5.3 - 11
================================================

[](#gosms-notifications-channel-for-laravel-53---11)

[![Latest Version on Packagist](https://camo.githubusercontent.com/57c27824c3c0919dd27b5c9567cc33fa32df28404811daf692898f94ee34e48c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736869726f616d6164612f676f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shiroamada/gosms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9a4469ca61e09a4d956508746bf8250c32c1d84814417dd42bd142956742ca5c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736869726f616d6164612f676f736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/shiroamada/gosms)[![StyleCI](https://camo.githubusercontent.com/bf1c608713e682f212c3c4d6ebf4ba88fac89523c7be89759dfd130018839cd8/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130383530333034332f736869656c64)](https://styleci.io/repos/108503043)[![Quality Score](https://camo.githubusercontent.com/b925f4bd4768a284eafd1e1ee58589acbabf74c2a45f08ca40d665f2223c1075/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/smsc-ru)[![Code Coverage](https://camo.githubusercontent.com/c6e91725dc4d758ae458181df7134d2e1fc833f0a4d650c926798d54489a208a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shiroamada/gosms/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c8166572771ad901a73befc2f62d738cf9c302377226de8f8e38e520db481f53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736869726f616d6164612f676f736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shiroamada/gosms)

This package makes it easy to send notifications using [https://gosms.com.my](https://gosms.com.my/gosms/index.aspx) with Laravel 5.3 through 11.

Code Reference from laravel-notification-channels/smsc-ru

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the GoSMS service](#setting-up-the-gosms-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require shiroamada/gosms
```

Then you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\GoSms\GoSmsServiceProvider::class,
],
```

### Setting up the GoSMS service

[](#setting-up-the-gosms-service)

Add your gosms.com.my login, secret key (hashed password) and default sender name (or phone number) to your `config/services.php`:

```
// config/services.php
...
'gosms' => [
    'company'   => env('GOSMS_COMPANY'),
    'username'  => env('GOSMS_USERNAME'),
    'password'  => env('GOSMS_PASSWORD'),
    'sender'    => env('GOSMS_SENDER'),
    'gateway'   => env('GOSMS_GATEWAY', 'L'),
    'mode'      => env('GOSMS_MODE', 'BUK'),
    'type'      => env('GOSMS_TYPE', 'TX'),
    'charge'    => env('GOSMS_CHARGE', '0'),
    'maskid'    => env('GOSMS_MASKID', '1'),
    'convert'   => env('GOSMS_CONVERT', '0')
],
...
```

Usage
-----

[](#usage)

You can use the channel in your `via()` method inside the notification:

```
use Illuminate\Notifications\Notification;
use NotificationChannels\GoSms\GoSmsMessage;
use NotificationChannels\GoSms\GoSmsChannel;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [GoSmsChannel::class];
    }

    public function toGoSms($notifiable)
    {
        return GoSmsMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

In your notifiable model, make sure to include a `routeNotificationForGoSms()` method, which returns the phone number. Newer Laravel versions pass the `Notification` instance as an optional argument, so this signature is broadly compatible:

```
public function routeNotificationForGoSms($notification = null)
{
    return $this->mobile; //depend what is your db field
}
```

### Available methods

[](#available-methods)

`from()`: Sets the sender's name or phone number.

`content()`: Set a content of the notification message.

`sendAt()`: Set a time for scheduling the notification message.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please use the issue tracker.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [ShiroAmada](https://github.com/shiroamada)
- [JhaoDa](https://github.com/jhaoda)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance69

Regular maintenance activity

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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 ~412 days

Recently: every ~534 days

Total

8

Last Release

180d ago

Major Versions

0.0.1 → 1.0.02017-10-28

1.1.1 → v11.0.02025-09-18

PHP version history (4 changes)0.0.1PHP &gt;=5.6.4

1.0.2PHP ^7.1

1.1.0PHP &gt;=7.2

1.1.1PHP &gt;=7.3

### Community

Maintainers

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

---

Top Contributors

[![shiroamada](https://avatars.githubusercontent.com/u/2062946?v=4)](https://github.com/shiroamada "shiroamada (22 commits)")[![rizaljamhari](https://avatars.githubusercontent.com/u/21326415?v=4)](https://github.com/rizaljamhari "rizaljamhari (5 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravelnotificationsgosms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiroamada-gosms/health.svg)

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

###  Alternatives

[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

212962.0k1](/packages/benwilkins-laravel-fcm-notification)[laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

51190.9k](/packages/laravel-notification-channels-smsc-ru)[laravel-notification-channels/rocket-chat

Rocket.Chat Notifications channel for Laravel 5.6+

1344.5k](/packages/laravel-notification-channels-rocket-chat)

PHPackages © 2026

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