PHPackages                             sikhlana/laravel-greenweb-sms-channel - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. sikhlana/laravel-greenweb-sms-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

sikhlana/laravel-greenweb-sms-channel
=====================================

Greenweb SMS Notifications driver for Laravel.

v1.2.0(5y ago)1221MITPHPPHP ^7.1CI failing

Since Apr 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sikhlana/laravel-greenweb-sms-channel)[ Packagist](https://packagist.org/packages/sikhlana/laravel-greenweb-sms-channel)[ RSS](/packages/sikhlana-laravel-greenweb-sms-channel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Greenweb SMS notifications channel for Laravel 5
================================================

[](#greenweb-sms-notifications-channel-for-laravel-5)

This package makes it easy to send SMS notifications via [Greenweb](https://bdbulksms.net/index.php) for Laravel 5. Greenweb only provides SMS service for Bangladeshi mobile operators.

Contents
--------

[](#contents)

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

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

[](#installation)

You can install the package via composer:

```
composer require sikhlana/laravel-greenweb-sms-channel
```

First you must install the service provider (skip for Laravel &gt;= 5.5):

```
// config/app.php
'providers' => [
    ...
    Sikhlana\GreenwebSmsChannel\ServiceProvider::class,
],
```

### Setting up the Greenweb service

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

Add your generated Greenweb SMS API key in your `.env` file:

```
...
GREENWEB_SMS_TOKEN=
```

Usage
-----

[](#usage)

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

```
use Sikhlana\GreenwebSmsChannel\GreenwebChannel;
use Sikhlana\GreenwebSmsChannel\GreenwebMessage;
use Illuminate\Notifications\Notification;

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

    public function toGreenweb($notifiable)
    {
        return (new GreenwebMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}
```

In order to let your Notification know which phone are you sending/calling to, the channel will look for the `phone_number` attribute of the Notifiable model. If you want to override this behaviour, add the `routeNotificationForGreenweb` method to your Notifiable model.

```
public function routeNotificationForGreenweb()
{
    return '01765432109';
}
```

### Available Message methods

[](#available-message-methods)

#### GreenwebMessage

[](#greenwebmessage)

- `content(string)`: Sets the message content.
- `line(string)`: Adds a line of text to the notification.

Changelog
---------

[](#changelog)

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

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Saif Mahmud](https://github.com/sikhlana)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~322 days

Total

4

Last Release

1985d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.1.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1730777?v=4)[Saif Mahmud](/maintainers/sikhlana)[@sikhlana](https://github.com/sikhlana)

---

Top Contributors

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

---

Tags

channellaravelsms-notificationslaravelnotificationssmschannelgreenweb

### Embed Badge

![Health badge](/badges/sikhlana-laravel-greenweb-sms-channel/health.svg)

```
[![Health](https://phpackages.com/badges/sikhlana-laravel-greenweb-sms-channel/health.svg)](https://phpackages.com/packages/sikhlana-laravel-greenweb-sms-channel)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 5, 6, 7, 8, 9, 10, 11, 12

1174.3k](/packages/salamwaddah-laravel-mandrill-driver)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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