PHPackages                             aasanakey/smsonline - 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. aasanakey/smsonline

ActiveLibrary

aasanakey/smsonline
===================

v0.0.3(2y ago)076MITPHPPHP ^8.0

Since Jan 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aasanakey/laravel-smsonlinegh)[ Packagist](https://packagist.org/packages/aasanakey/smsonline)[ RSS](/packages/aasanakey-smsonline/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Laravel Smsonline GH Sms Api
============================

[](#laravel-smsonline-gh-sms-api)

Send Laravel Notifications via the smsonline GH SMS API
-------------------------------------------------------

[](#send-laravel-notifications-via-the-smsonline-gh-sms-api)

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

[](#installation)

You can install the package via composer:

```
composer require aasanakey/smsonline
```

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

```
// config/app.php
'providers' => [
    ...
    \Aasanakey\Smsonline\SmsonlineServiceProvider::class,
],
```

You can publish the config file with:

```
php artisan vendor:publish --tag=smsonline-config
```

or

```
php artisan vendor:publish --provider="Aasanakey\Smsonline\SmsonlineServiceProvider" --tag="smsonline-config"
```

Configuration
-------------

[](#configuration)

Add your smsonline Gh api access key, api host, sender Id/sender name.

Set your smsonline Gh api keys in your .env file.

```
SMSONLINE_HOST=Sms online api host

```

Or

Add api host to your `config/smsonline.php`:

```
// config/services.php
...
"host" => env('SMSONLINE_HOST','api.smsonlinegh.com'),
...
```

Set your smsonline Gh api keys in your .env file.

```
SMSONLINE_API_KEY=your smsonline api key

```

Or

Add your API Key to your `config/smsonline.php`:

```
// config/services.php
...
"api_key" => env('SMSONLINE_API_KEY',null),
...
```

For your smsonline API Key visit [SMS API](https://portal.smsonlinegh.com/account/api/options)

Set your smsonline Gh sender Id in your .env file.

```
SMSONLINE_SENDER_ID=your sender ID

```

Or

Add your Send Id to your `config/smsonline.php`:

```
// config/services.php
...
"sender_id" => env('SMSONLINE_SENDER_ID',null),
...
```

For your smsonline API Key visit [Sender Name](https://portal.smsonlinegh.com/message/sms/senders)

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification as well as send an sms notification using the smsonline api:

```
use Illuminate\Notifications\Notification;
use Aasanakey\Smsonline\SmsonlineSmsMessage;

class SMSNotification extends Notification
{
    public function via($notifiable)
    {
        return ['smsonlinegh'];
    }

    public function toSmsonline($notifiable)
    {
        return (new SmsonlineSmsMessage)
            ->sender('Sender ID')
            ->content('Your account was approved!')
            ->personalisedValues("List of data for personnalised message content"); // call this method if content has message variables placeholders
    }
}
```

### Check balance

[](#check-balance)

To check your sms balance use the `checkBalance()` method on SMSAPI object:

```
use Aasanakey\Smsonline\Sms;

$sms = new Sms();
$balance = $api->balance(); // returns balance info object
$amount = $balance->ammount // returns balance ammount
$currencyName = $balance->currencyName // returns the balance currency name
$currencyCode = $balance->currencyCode // return the balance ccurrency code
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Every ~147 days

Total

3

Last Release

928d ago

PHP version history (2 changes)v0.0.2PHP &gt;=7.4|^8.0

v0.0.3PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/19ac717b0fe478fe37799fdc0119d9d9c03c56bcdb5b3bd7975508b2785d27d8?d=identicon)[aasanakey](/maintainers/aasanakey)

---

Top Contributors

[![aasanakey](https://avatars.githubusercontent.com/u/43689197?v=4)](https://github.com/aasanakey "aasanakey (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aasanakey-smsonline/health.svg)

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

###  Alternatives

[laravel/slack-notification-channel

Slack Notification Channel for laravel.

89069.7M111](/packages/laravel-slack-notification-channel)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)

PHPackages © 2026

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